Skip to content

fix: lead chat review leftovers from #970 - #992

Merged
badcuban merged 2 commits into
mainfrom
fix/lead-chat-review-leftovers
Nov 18, 2026
Merged

badcuban merged 2 commits into
mainfrom
fix/lead-chat-review-leftovers

Conversation

@badcuban

Copy link
Copy Markdown
Collaborator

A blind review of #970 found bugs that #986 didn't cover:

  • A lead started with a goal never heard its role.
  • New lead chat from an unsent draft made the lead in the wrong project.
  • A thread menu left open could do the opposite of its label.
  • The lead was never told it may start 10 threads and send 20 messages.
  • Auto-archive could archive the lead and end its role.

Fixes:

  • A goal set or resumed in the lead carries the role. Claude reads it as a no-reply message before /goal. Codex gets it as a developer message through thread/inject_items before thread/goal/set, best effort.
  • The palette's New lead chat uses the draft's project.
  • Make and stop lead have their own menu action ids, so a stale click does nothing.
  • The role text and the thread_send description state the lead's limits, built from the enforced constants.
  • Auto-archive and its settings preview keep a project's lead, as they keep a pinned thread.
  • lead-chat.md matches what ships: no keybinding command, and an agent without thread tools is told per turn.

Checked: fmt, lint, typecheck, the touched server, shared and replay tests, web unit tests and the full web browser suite. Not checked: a live goal turn on either provider.

- A goal set or resumed in the lead now carries the lead's role. Claude
  reads it as a no-reply message just before /goal; Codex gets it as a
  developer message in the thread's history (thread/inject_items) before
  thread/goal/set, best effort. A goal given back after a move carries it
  too.
- The palette's New lead chat targets the open draft's project, and no
  longer falls back to the first project while that project is loading.
- The thread menu's make and stop lead items have their own action ids,
  so a menu left open does what its label said.
- The role text and the thread_send description state the lead's limits;
  both tool descriptions build their numbers from the enforced constants.
- Auto-archive and its settings preview keep a project's lead chat, as
  they keep a pinned thread.
- lead-chat.md matches what ships: no keybinding command, and an agent
  without thread tools is told per turn instead of a disabled item.
@vercel

vercel Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

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

1 Skipped Deployment
Project Deployment Actions Updated
threadlines Skipped Skipped Nov 18, 2026 9:24am UTC

Request Review

thread_send's description now states the lead chat's message limit
(20 per user message, 10 for other threads). ACP agents learn rules only
from tool descriptions, so the 70 bytes are what tells them.
@badcuban

Copy link
Copy Markdown
Collaborator Author

The agent context budget grew by 70 bytes: thread_send's description now states the lead chat's message limit. ACP agents learn rules only from tool descriptions, so this is how a lead on one of them knows it may send 20 messages per user message instead of 10.

@badcuban
badcuban added this pull request to the merge queue Nov 18, 2026
Merged via the queue into main with commit 57a6bdb Nov 18, 2026
24 checks passed
@badcuban
badcuban deleted the fix/lead-chat-review-leftovers branch November 18, 2026 09:36

This branch was previously deployed

1 inactive deployment
Preview — e8cb246c Deployed Nov 18, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant