Skip to content

feat(agent): Deliver completed assistant messages - #969

Merged
dcramer merged 12 commits into
mainfrom
feat/assistant-message-delivery
Jul 21, 2026
Merged

dcramer merged 12 commits into
mainfrom
feat/assistant-message-delivery

Conversation

@dcramer

@dcramer dcramer commented Jul 21, 2026 •

Copy link
Copy Markdown
Member

Junior now delivers every completed, visible assistant model message to the active destination in model order, before the agent advances to tools or another model turn. Slack mentions, resumed turns, dispatches, and the local CLI all use the same narrow onAssistantMessage({ text }) callback. Thinking, no-reply markers, raw tool payloads, and text-only execution deferrals remain hidden; failed runs append the safe failure response even when an earlier progress message was already visible.

The runtime no longer has a separate terminal-message delivery plan, marker, identifier, or success path. Completion still requires a finished answer or explicit no-reply, and accepted messages are persisted individually with ordered turn-scoped IDs. This also makes run identity explicit through conversationId and turnId instead of a generic routing/correlation bag. Ordinary model messages now share one Slack delivery path and no longer receive the former final-only dashboard footer; authorization notices retain their existing footer.

The former general-purpose sendMessage tool is narrowed to file-only sendFiles({ files }), since ordinary model text is delivered automatically. Integration coverage owns the exact completed-message boundary and failure behavior, while model evals verify that progress and the finished answer appear as distinct, complete messages without fragments, cumulative drafts, or duplicate replies, and that generated files are uploaded alongside normal assistant text. Skill guidance also stops encouraging default allowed-tools lists when the runtime does not require them.

@vercel

vercel Bot commented Jul 21, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
junior-docs Ready Ready Preview Jul 21, 2026 7:47pm

Request Review

Post each completed visible assistant message through an awaited delivery callback, and keep the local provider behavior aligned.

Replace the general-purpose sendMessage tool with sendFiles for explicit attachment delivery.
@dcramer
dcramer force-pushed the feat/assistant-message-delivery branch from 8bddba1 to ffa2392 Compare July 21, 2026 05:05
@dcramer
dcramer marked this pull request as ready for review July 21, 2026 15:08
@github-actions github-actions Bot added the risk: high PR risk score: high label Jul 21, 2026
Send every completed visible model message through the provider delivery callback in model order. Keep failure fallback and turn completion separate from ordinary assistant delivery, and use the same contract for Slack, resumed, dispatched, and local turns.

Replace terminal-message delivery planning with focused integration and eval coverage for complete, distinct progress and answer messages.
@dcramer dcramer changed the title feat(slack): Deliver assistant messages as they complete feat(agent): Deliver completed assistant messages Jul 21, 2026

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit a6021c3. Configure here.

@dcramer
dcramer merged commit da7f65a into main Jul 21, 2026
32 of 36 checks passed
@dcramer
dcramer deleted the feat/assistant-message-delivery branch July 21, 2026 20:08

This branch was successfully deployed

1 active deployment
Preview – junior-docs — 20595537 Deployed Jul 21, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: high PR risk score: high

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant