Skip to content

Fix pack rotation across independent sessions - #600

Merged
garysheng merged 3 commits into
mainfrom
triage-594-20261004
Oct 4, 2026
Merged

garysheng merged 3 commits into
mainfrom
triage-594-20261004

Conversation

@garysheng

Copy link
Copy Markdown
Collaborator

Independent sessions starting close together inherited the globally last active session's pack, so random and round-robin rotation could converge to one pack. Require matching identity for resume and child inheritance, and explicit compact events with matching terminal and directory identity for changed session IDs. Persist assignments before returning from silent compact events.

Add 13 regression cases covering concurrent sessions, shared directories, resume, compact and child boundaries. Ten failed against the original implementation. All 13 regressions, 54 existing core checks and 95 adapter/lint checks pass. Update English, Japanese, Chinese and public configuration guidance.

Fixes #594.

Require matching session identity for resume and explicit compact source with terminal and directory continuity for changed IDs. Match pending subagent inheritance by agent_id, and persist silent compact assignments. Add deterministic rotation and identity boundary regressions with updated child fixtures and README behavior.
Sync Japanese, Chinese and public model-facing docs with the tested pack isolation rules. Pure documentation, no executable behavior change.
@vercel

vercel Bot commented Oct 4, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
peon-ping Ready Ready Preview Oct 4, 2026 6:26pm UTC

Request Review

Preserve subagent_input_required and the verified parent-child agent identity guidance together. The conflict is limited to the public configuration paragraph; all maintained runtime and translated documentation changes are retained. This isolated merge contains only the reviewed files.
@garysheng
garysheng merged commit aed1f0a into main Oct 4, 2026
4 checks passed

This branch was successfully deployed

1 active deployment
Preview — 805d203f Deployed Oct 4, 2026 by vercel[bot]
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.

Random pack rotation converges to a single pack when multiple sessions run concurrently

1 participant