Skip to content

Fix Agent delegation and structured mentions - #27

Merged
spytensor merged 1 commit into
mainfrom
codex/agent-mention-runtime-contract
Aug 6, 2026
Merged

Fix Agent delegation and structured mentions#27
spytensor merged 1 commit into
mainfrom
codex/agent-mention-runtime-contract

Conversation

@spytensor

Copy link
Copy Markdown
Owner

Summary

  • Make resolved Agent mentions the single source of truth from the composer through delegation, persistence, history restore, and regeneration.
  • Render one removable Agent chip instead of retaining duplicate raw @agent text and derived UI state.
  • Make delegated-run failures and worker progress truthful: classify truncation and repeated failed tool calls, omit diagnostic transcript paths from parent-model evidence, and keep loop counters out of product status.

Root cause

Agent identity was represented both as prose and as inferred state, while persistence and replay did not consistently carry the resolved identity. That split ownership allowed duplicate presentation and made regeneration re-parse user text.

Validation

  • Focused backend tests: 93 passed
  • Focused chat UI tests: 146 passed
  • pnpm typecheck
  • pnpm --filter mozi-ui build
  • pnpm verify:public-export

@spytensor
spytensor marked this pull request as ready for review August 6, 2026 04:27
@spytensor
spytensor merged commit b1513bb into main Aug 6, 2026
6 of 7 checks passed
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