Skip to content

refactor: split session recording modules#528

Merged
thymikee merged 1 commit into
mainfrom
refactor/session-recording-modules
May 14, 2026
Merged

refactor: split session recording modules#528
thymikee merged 1 commit into
mainfrom
refactor/session-recording-modules

Conversation

@thymikee
Copy link
Copy Markdown
Member

@thymikee thymikee commented May 14, 2026

Summary

Split session recording into hot-path recording and export-time script writing modules.

Adds diagnostics for session script write failures/successes and tightens sanitized flag key typing while preserving the existing store facade.

Folded narrow recorder/writer tests into broader SessionStore coverage so the test surface follows the handler-facing facade. Cleaned up fallow findings by keeping internal helpers private, reducing repeated store-test setup, and splitting replay script token parsing helpers.

Validation

  • zsh -ilc 'export PNPM_HOME="$HOME/Library/pnpm"; export PATH="$PNPM_HOME:$PATH"; pnpm install --frozen-lockfile'
  • zsh -ilc 'export PNPM_HOME="$HOME/Library/pnpm"; export PATH="$PNPM_HOME:$PATH"; pnpm exec vitest run src/daemon/__tests__/session-store.test.ts src/daemon/handlers/__tests__/replay-heal.test.ts'
  • zsh -ilc 'export PNPM_HOME="$HOME/Library/pnpm"; export PATH="$PNPM_HOME:$PATH"; pnpm check:fallow --base origin/main'
  • zsh -ilc 'export PNPM_HOME="$HOME/Library/pnpm"; export PATH="$PNPM_HOME:$PATH"; pnpm format && pnpm check:quick'
  • zsh -ilc 'export PNPM_HOME="$HOME/Library/pnpm"; export PATH="$PNPM_HOME:$PATH"; pnpm check:unit'

@thymikee thymikee force-pushed the refactor/command-definition-codecs branch from 9353b69 to 9b363aa Compare May 14, 2026 14:20
@thymikee thymikee force-pushed the refactor/session-recording-modules branch 2 times, most recently from 1e799f9 to 9d4e866 Compare May 14, 2026 15:29
@thymikee thymikee force-pushed the refactor/command-definition-codecs branch 2 times, most recently from 194a267 to d307a2c Compare May 14, 2026 15:59
@thymikee thymikee force-pushed the refactor/session-recording-modules branch from 9d4e866 to adbc0e0 Compare May 14, 2026 15:59
@thymikee thymikee force-pushed the refactor/command-definition-codecs branch from d307a2c to ca6e29e Compare May 14, 2026 16:41
@thymikee thymikee force-pushed the refactor/session-recording-modules branch from adbc0e0 to 68085e3 Compare May 14, 2026 16:49
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 14, 2026

PR Preview Action v1.8.1

QR code for preview link

🚀 View preview at
https://callstackincubator.github.io/agent-device/pr-preview/pr-528/

Built to branch gh-pages at 2026-05-14 17:25 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

Base automatically changed from refactor/command-definition-codecs to main May 14, 2026 16:57
@thymikee thymikee force-pushed the refactor/session-recording-modules branch from 68085e3 to af7d84c Compare May 14, 2026 17:07
@thymikee thymikee force-pushed the refactor/session-recording-modules branch from af7d84c to 0308c6f Compare May 14, 2026 17:24
@thymikee thymikee merged commit 1987198 into main May 14, 2026
17 of 18 checks passed
@thymikee thymikee deleted the refactor/session-recording-modules branch May 14, 2026 17:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant