Skip to content

fix: Ultracode no longer carries into new threads and delegated tasks - #155

Merged
chrisohearn merged 3 commits into
integration/mcp-events-20261109from
fix/ultracode-per-thread-fork
Nov 24, 2026
Merged

chrisohearn merged 3 commits into
integration/mcp-events-20261109from
fix/ultracode-per-thread-fork

Conversation

@chrisohearn

Copy link
Copy Markdown
Owner

Problem

Turning Ultracode on once makes later threads start with it, and threads started from an Ultracode thread (delegate_task, remote delegation, t3_thread_launch, schedule_task) inherit it.

Change

Carries upstream pingdotgg#42448 (issue pingdotgg#42447) onto the integration branch, so the server and the browser-served client get the fix before upstream ships it. Ultracode stays on the thread it was chosen for: remembered and carried composer options drop it, and child, launched and scheduled threads inherit every option except Ultracode unless the request asks for it.

Port notes: this branch's t3_thread_launch resolves the caller's model in apps/server/src/mcp/ThreadLaunchMcpService.ts rather than toolkits/project/handlers.ts, so the launch change lives there. Everything else applied cleanly.

The desktop and mobile apps bundle their own UI, so their composer fix arrives only with an upstream release. The server-side inheritance fix applies to every client once this is deployed.

Verification

  • 360 tests across the touched files pass on this branch, including the new regression tests (each fails without the fix).
  • Upstream PR: a real web client on main showed a new thread starting with Ultracode on after it was turned on in another thread; with the change it starts off.

🤖 Generated with Claude Code

Turning Ultracode on once made later threads start with it. The web and
mobile composers remembered it with the model's other traits, the web
"new thread" action copied it from the current composer, and
delegate_task, remote delegation, t3_thread_launch and schedule_task
copied a parent thread's Ultracode into the threads they start.

Ultracode now stays on the thread it was chosen for. Remembered and
carried composer options drop it, when written and when loaded, and
child, launched and scheduled threads inherit every option except
Ultracode unless the request asks for it. A legacy "ultracode" effort is
remembered as Extra High, and an explicit Ultracode off is kept.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-24T22:38:03.774796Z 42a686c New commits
🔒 Security Review ✅ Completed 2026-11-24T22:38:40.229949Z 42a686c New commits
ℹ️ 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.

The new-thread action now imports the shared model helpers, which read
ProviderDriverKind from @t3tools/contracts at load time.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@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: 098aba074e

ℹ️ 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 packages/shared/src/model.ts Resolved
Comment thread packages/shared/src/model.ts Resolved
A schedule created from an Ultracode thread before the fix stored its
Ultracode and passed it to every new thread it launched. Strip it at
launch so existing rows stop carrying it too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@chrisohearn
chrisohearn merged commit 0e62441 into integration/mcp-events-20261109 Nov 24, 2026
19 checks passed
@chrisohearn
chrisohearn deleted the fix/ultracode-per-thread-fork branch November 24, 2026 22:45
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