Skip to content

feat(mecatui): inspect Edit requests and bounded Subagent activity - #2139

Merged
jbeda merged 10 commits into
mainfrom
impl/mecatui-toolcall-delegation-previews
Oct 7, 2026
Merged

jbeda merged 10 commits into
mainfrom
impl/mecatui-toolcall-delegation-previews

Conversation

@jbeda

@jbeda jbeda commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • /toolcalls shows an Edit request diff without duplicating valid old_string/new_string fields; received arguments, extra fields, and results remain inspectable. A request diff does not claim the edit was applied.
  • /toolcalls lists top-level calls only. A Subagent parent's detail shows one-line, themed pending/✓/✗ summaries of retained child tool activity, without selectable child rows or drill-down. Missing activity after reload is labeled as incomplete history.
  • Subagent, Parallel, and Team carry the existing child tool-call ID through bounded engine event, protobuf, server, and client projections. Results correlate by exact ID within the child lane, including separate children resumed under one parent. Older ID-less events match only a unique retained ID-less call by name when that name is available. No result is attached by guesswork.
  • Each child lane retains the most recent 128 tool calls and separately up to 12 message previews. If a call has left the window, its later result is dropped, not shown as a result-only row. Unmatched and ambiguous results are dropped as well. IDs longer than 256 bytes or invalid UTF-8 are omitted with their previews rather than repaired into a potentially false match.
  • F6 family navigation and approval ownership are unchanged. The previews remain sanitized and bounded; this adds no child transcript, full child arguments/results, history reload guarantee, or new authority. The owning TUI/delegation guides and generated gRPC reference are updated.

This branch is based on main after #2105 removed the acceptance-plan/ADR workflow. The previous plan is retained under ignored .scratch/ for local context, not as a repository-enforced contract. No new ADR or plan PR is part of this change. Exported API snapshots and the engine changelog reflect the additive fields.

Verification: task test, task lint, task test:race, task docs, task site:build, task api:check, the offline demo (tool call → permission ask/approval → result), and focused UI race tests passed. Independent spec/security rechecks found no remaining blocker; a composed wire-to-UI regression test remains an advisory opportunity. Only a human merges this PR.

Relates to #2122 and #2115; tracking #2123.

jbeda and others added 10 commits October 7, 2026 14:57
Keep 128 tool calls per child lane independently of message previews; drop results without a retained matching call. Show Subagent activity in the parent inspector detail, and carry exact child call IDs through all three delegation projections.

Co-authored-by: Mecatl <[email protected]>
Show provisional delegated results until canonical confirmation, keep their early projections live-only, and preserve child-summary anchors across multiline detail updates.

Co-authored-by: Mecatl <[email protected]>
@jbeda
jbeda force-pushed the impl/mecatui-toolcall-delegation-previews branch from 28e7e8d to b5fea4b Compare October 7, 2026 22:11
@jbeda
jbeda merged commit dcf1ea4 into main Oct 7, 2026
65 of 66 checks passed
@jbeda
jbeda deleted the impl/mecatui-toolcall-delegation-previews branch October 7, 2026 22:54
This was referenced Oct 8, 2026

This branch was successfully deployed

1 active deployment
Preview — b5fea4b2 Deployed Oct 7, 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.

1 participant