Repository navigation
Ignore stale terminal RPC failures after Cloud transcript reattachment - #18037
azooz2003-bit wants to merge 12 commits into
Conversation
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…rpc-lifetime Preserve bounded terminal RPC deadlines and fence late failures to their transcript attachment. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Keep main's agent chat localization additions alongside terminal RPC timeout copy. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
* test: reproduce stale terminal focus when reopening a transcript * fix: refresh terminal bindings when reopening Cloud transcripts * test: keep terminal RPC fixture types stable across assertions
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 23 minutes. View limit detailsLimit details: You’ve used all 10 included reviews currently available. Review configuration: ⚙️ Run configuration
📒 Files selected for processing (13)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Note Pull Request opener @azooz2003-bit is not an author or co-author of any commit in this PR (commit identities: All contributors have signed the CLA ✍️ ✅ |
Closing or redirecting a terminal transcript while Send, Stop, or Focus Terminal is waiting for an RPC reply can append the old failure to the replacement view. Fence these callbacks by disposal generation, attachment, target identity, and captured target IDs. Active attachments still report their own failures and preserve failed-send prompts for recovery.
Depends on #16065; this PR targets
fix/cloud-terminal-rpc-deadlineso its diff contains only the lifetime fix. Focus failures now use the same guarded action path and are emitted once.Validation
47d6d2975d5b841a2f24f7f5a815cb031bcefaff.25677e569383a99a9fd3a898328b19b85b069797.agent-chat,bun test/transcript-rpc-lifetime.test.ts: red with the regression commit's adapter (a disposed view must not receive a late terminal RPC failure), green with the fix. Covers Send, Stop, and Focus Terminal across disposal without a reader, redirection, mutable target IDs, and reattachment to identical targets; current failures still arrive.bun test/terminal-rpc-errors.test.ts: passed, including prompt recovery and all 20 locales.bun run check: passed (typecheck, 26 scripts, 44 tests across 13 bun:test files).bun build src/main.tsx src/gallery-main.tsx --target browser --minify --splitting --outdir scratch/build-check --define 'process.env.NODE_ENV="production"': passed.git diff --check 953efca947fb2f5901ec853da03acb04ed8ad49c..HEAD: passed.No live Cloud instance or browser validation. The generic
scripts/verify-local.pyentrypoint is absent from this checkout; scoped Agent Chat checks ran instead.Changelog
Fixed: Cloud Agent Chat ignores late terminal action failures after a transcript closes or switches attachments.
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.Summary by cubic
Fixes Cloud Agent Chat terminal RPCs so they no longer hang past their deadline or surface stale failures after a transcript closes or switches attachments. Reopening a Cloud transcript now refreshes the terminal bindings when the agent session or surface changes.
Bug Fixes
Written for commit b80327e. Summary will update on new commits.
Summary by CodeRabbit
Migrated from #16068 after correcting the PR author identity. The original head commit b80327e is preserved.