Skip to content

Stop button on worker rows; clickable thread ids in replies (#1531) - #1536

Merged
currentbits merged 1 commit into
mainfrom
coder/1531-subagent-stop-thread-links-a5ed1a
Oct 9, 2026
Merged

currentbits merged 1 commit into
mainfrom
coder/1531-subagent-stop-thread-links-a5ed1a

Conversation

@currentbits

Copy link
Copy Markdown
Owner

Part of #1531.

  • Agents panel: a worker row shows a Stop button while that worker is running. It calls the existing runs.stop action, the same one behind the thread_stop MCP tool, so there is no new backend path.
  • Replies: a thread id in an assistant reply becomes a link that opens the thread, but only when it belongs to a known thread in the current project. Unknown UUIDs stay plain text.

Tests are in test/teamView.test.tsx and test/markdown.test.tsx.

🤖 Generated with Claude Code

…1531)

- Team worker rows get a Stop icon button while working. It calls the
  same runs.stop IPC (runner.stopRun) behind the composer Stop and the
  thread_stop MCP tool.
- Known same-project thread ids in assistant replies render as links
  that open the thread. Resolution happens at render time through
  ThreadLinkContext, so cached markdown parses stay valid. Unknown UUIDs
  and fenced code are left alone.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 9, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-09T12:07:50.155693Z e7db4e1 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e7db4e12e9

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/App.tsx
Comment on lines +2068 to +2070
onStopThread={(threadId) => {
void api.runs.stop({ threadId }).catch(() => {});
}}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Memoize the worker-stop handler

This inline callback gets a new identity whenever App renders, so every 700 ms stream update defeats AgentsPanel's memo boundary and re-renders the entire inspector even when its data is unchanged. The surrounding code explicitly keeps all pane props stable to avoid this stream-time regression; define this handler with useCallback and pass the stable reference instead.

Useful? React with 👍 / 👎.

@currentbits
currentbits merged commit 1049aea into main Oct 9, 2026
6 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