Repository navigation
fix(server): audit batch 2 — shared-session imports, upstream peer lists, ACP env; drop project actions list - #304
Merged
Merged
Conversation
…Path filter fails
…env strips any spelling
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fork audit batch 2 (server/MCP): three integration defects and two trims.
F1 – Bulk import duplicated sessions owned through a sibling instance. A Claude shadow instance and its default share one transcript store, but the bulk import guard compared only the instance ID, so a session imported or run through the shadow could be attached to a second thread. The EventSink guard now also matches owners on instances with the same continuation key, and owners recorded in
fork_native_continuationunder that key (covers a removed shadow). Bulk import keeps blocking deleted owners; manual import already matched by continuation key and is unchanged.F3 –
t3_thread_listagainst a stock upstream peer failed to decode.threads[].worktreePathis optional on the wire (still always emitted locally). A forwarded list with the fork-onlyworktreePathfilter fails with a clear error when the peer's items lack the field, instead of returning unfiltered threads.F6 – ACP agents inherited the server's own thread variables. The shared ACP spawn used
extendEnv, which re-addedT3CODE_THREAD_ID/TURN_ID/WORKTREE_PATHfrom the server process. It now builds the env fromwithoutThreadEnvironment(process.env)(case-insensitive) plus the adapter's values; provider instance env snapshots drop them too.T1 – Removed
t3_project_actions_list.t3_project_read/t3_project_listreturn the same effective actions. Upsert/remove descriptions point att3_project_read; README, context budget, and tests updated.T14 – One fork MCP island test matrix replaces the thread-groups and voice registration tests (8 islands, common tools, voice gating, one voice call). −210 test lines.
Evals to run (not run here; model-facing text changed): project-action tool selection cases, if any, per
evals/README.md; MCP tool-list budget measured byAgentContextBudget.test.ts.Implemented with Claude Opus 5.5 in Claude Code (T3 Code); reviewed by GPT 6.2 Astra and Claude Opus 5.5.