Conversation
jerryccan
force-pushed
the
feat/attach-existing-task-group
branch
from
September 5, 2026 10:59
91599d4 to
3ca5560
Compare
jerryccan
force-pushed
the
feat/attach-existing-task-group
branch
4 times, most recently
from
September 5, 2026 12:26
ef7c434 to
2c95387
Compare
Co-authored-by: TRAE CLI <traecli@bytedance.com>
jerryccan
force-pushed
the
feat/attach-existing-task-group
branch
from
September 10, 2026 03:09
2c95387 to
b2fd55c
Compare
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.
Summary
Extend
newgroupso an idle, unbound App Server Session can be reused in a new Feishu group without creating or forking a Session./newgroup [title] --session <session-id> [--agent <name>]agentbot task newgroup [task] [title] --session <session-id> [--agent <standard-name>]codex://threads/<id>references.--sessionis omitted.--agentonly to disambiguate the same Session ID across App Server Agents.Behavior
--agentselects the owner.Session attachment is serialized per Agent and Session within a Worker, then enforced across processes by the existing SQLite uniqueness constraint. The remote Session is checked again after group creation before the local binding is committed. If the immediate group cleanup fails, the existing audit store marks the group fail-closed so incoming messages cannot silently create a different task. No persistent cleanup worker, retry loop, or new state table is introduced.
Session mode cannot be combined with
--diror--nodir. Mixed CLI/Worker versions fail before group creation instead of falling back to fresh-task behavior.Validation
npm run verify— unit/integration: 1074 passed, 3 skipped; process: 9 passed; render: 7 passednpm run buildnpm run package:smokegit diff --check origin/master...HEAD@_user_1 please review.