perf(activity-groups): derive groups without model control calls - #617
Merged
Conversation
Remove the declaration-only MCP, prompt guidance, context estimate, and bridge schema so agents act on real tools immediately. Keep persisted activity-group parsing and renderer fallback grouping for historical sessions and host-derived UI titles.
Codex ReviewVerdict: mergeable No actionable findings. Summary: Static inspection found no concrete merge-blocking defect in the changed code. |
This was referenced Aug 2, 2026
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.
Problem
begin_activity_groupis a model-controlled MCP call used only to name and delimit activity groups. It adds a tool schema, system/turn instructions, permission traffic, and an additional inference step even though the host already groups real tool activity and can provide fallback titles.Proposed change
Scope and non-goals
This removes an internal control-call component; it does not add a new architecture or state machine. There is no data-model or data-relationship migration. Existing tool activity remains grouped in the UI, but the synthetic model declaration/permission step disappears. Asynchronous semantic title generation, Notebook output reduction, skill injection, and connector-context optimization remain out of scope.
Acceptance criteria and validation
All final checks ran after the last material edit:
npm test -- src/main/acp/context-usage-static-context.test.ts src/main/acp/runtime.test.ts src/main/settings/service.test.ts-> 527/527 passed.npm run typecheck-> passed.npm run lint-> 0 errors, 19 baseline warnings.npm test-> 669 files and 9,752 tests passed; 15 files and 184 tests skipped.Two independent reviews found no standards or specification findings. Uncovered risk: token reduction is inferred from removing the extra model-controlled tool step and static context, not measured by an automated provider-level token benchmark.
Review focus
Please verify that every active producer of
begin_activity_groupis removed while historical activity-group events and host fallback rendering remain compatible.