Repository navigation
Improve experimental message editing - #1378
Conversation
|
🚨 SLOP COP 🚨 · I am the SlopCop. I am reviewing this pull request under the I will run security, code quality, architecture, performance, and end-to-end checks. I will post one final review after the checks finish. |
SawyerHood
left a comment
There was a problem hiding this comment.
🚨 SLOP COP 🚨 · review
ELI5: A stopped Codex turn no longer blocks edits to the next message. It is like reopening a book after a pause.
I found one concern. The new condition also accepts failed prior turns. Failed Claude Code turns can carry checkpoints with incomplete provider state. The pull request states only interrupted prior turns. I left an inline comment on the condition.
The security review found no vulnerability. The change keeps the authorization checks, write gates, transaction checks, and fail-closed rewind order.
The performance review found no regression. The change adds no query, loop, index, or event scan.
The architecture review found no duplicate checkpoint policy or stale domain name. This service remains the single policy location.
The end-to-end browser check passed. I stopped a real Codex turn, completed a second turn, edited the second user message, and received the expected edited reply.
Validation passed:
- All 23 focused server tests passed.
- All 1,437 server tests passed.
- The server typecheck and
git diff --checkpassed. - All GitHub checks passed.
I posted this as a comment-only review. I did not approve the pull request or request changes.
7f9858d to
854cf39
Compare
Summary
Testing
pnpm exec turbo run test --filter=@bb/server --force -- test/threads/thread-edit-message.test.ts test/threads/thread-stop-retry.test.ts test/threads/thread-live-start-handoff.test.ts(48 tests, including all 15 provider/status combinations)pnpm exec turbo run test --filter=@bb/agent-runtime --force -- src/pi/bridge/__tests__/bridge.test.ts src/pi/bridge/__tests__/sdk-session.test.ts src/runtime.command-contract.test.ts(74 tests)pnpm exec turbo run test --filter=@bb/agent-runtime --force -- src/runtime-thread-rewind.test.ts src/codex/adapter.test.ts src/pi/adapter.test.ts src/claude-code/adapter.test.ts src/pi/bridge/__tests__/bridge.test.ts src/claude-code/bridge/__tests__/bridge.test.ts(475 tests)pnpm exec turbo run test --filter=@bb/host-daemon --force(542 tests)pnpm exec turbo run test --filter=@bb/host-daemon-contract --force(49 tests)pnpm exec turbo run test --filter=@bb/app --force(336 files, 2,551 tests)pnpm exec turbo run typecheck --filter=@bb/agent-runtime --filter=@bb/host-daemon --filter=@bb/host-daemon-contract --filter=@bb/serverpnpm exec turbo run typecheck --filter=@bb/app --filter=@bb/cli --filter=@bb/server-contract --filter=@bb/templatespnpm exec turbo run lint --filter=@bb/agent-runtime --filter=@bb/host-daemon --filter=@bb/host-daemon-contract --filter=@bb/serverpnpm exec turbo run lint --filter=@bb/app --filter=@bb/cli(0 errors, existing warnings only)pnpm exec prettier --check ...node packages/templates/scripts/generate-templates.mjs --checkgit diff --check