GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(server): create_threads titles stop at the first line break by only21mil · Pull Request #44597 · pingdotgg/t3code

Conversation

@only21mil

@only21mil only21mil commented Nov 28, 2026

Copy link
Copy Markdown
Contributor

Problem

A thread an agent creates with create_threads and no title can get a title that spans several lines.

Steps (Linux):

  1. Run the T3 Code server and start a thread with an agent that has the T3 MCP tools.
  2. Have the agent call create_threads with one thread, no title, and the prompt "Review the auth flow\n\nPay special attention to token renewal."
  3. Read the new thread's title (t3 thread list or the sidebar).

The title is the whole prompt, both paragraphs and the line breaks included, instead of "Review the auth flow". CR, CRLF, U+2028 and U+2029 do the same. A prompt over 80 characters is cut at 77 with the line breaks kept, such as "Review the auth flow\n\nPay special attention to token renewal, refresh races a...". Nothing renames the thread later, since create_threads starts its run without a title seed.

Change

threadTitle in OrchestratorMcpService.ts now names an untitled thread after the first line of its trimmed prompt, splitting on /[\r\n\u2028\u2029]/ the same way titleFromMessage does for t3 thread start (#43990). schedule_task already stops at the first line break in the same file (#44481). An explicit title, the 80-character cut (#29163) and the empty-prompt placeholder are unchanged.

Scope

This is a small fix for an obvious bug, and the steps above reproduce it, so it needs no issue.

Verification

New cases in the existing replays accepted creation ... test in OrchestratorMcpService.test.ts: LF, CR, U+2028 and U+2029 between two paragraphs, a multiline prompt over 80 characters, blank lines then an 80-character line with trailing spaces, and an explicit title that must stay as given.

Test cases alone on main 1356a26 (the loop stops at its first failing case; the 2 failures are the test's two provider instances):

AssertionError: expected 'Review the auth flow\n\nPay special a…' to equal 'Review the auth flow'
 Test Files  1 failed (1)
      Tests  2 failed | 102 passed (104)

With the fix: Tests 104 passed (104); vp run check:changed passes.

Real server check per commit:

  • Setup: Linux, t3 serve with a fresh isolated data directory per commit, a Codex thread with the T3 MCP tools, full-access mode.
  • Steps: t3 thread start with a prompt asking the agent to call create_threads once with no title and the prompt above → wait for the child thread's run to finish → t3 thread show <child> --json.
main 1356a26 this PR d6ae2e7
title in the create_threads result "Review the auth flow\n\nPay special attention to token renewal." "Review the auth flow"
Stored title after the child's run finished "Review the auth flow\n\nPay special attention to token renewal." "Review the auth flow"
Child's first message "Review the auth flow\n\nPay special attention to token renewal." same

Not shown: the web and mobile sidebars.

Generated with Gemini 4 Neon in T3 Code Nightly

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@only21mil
fix(server): create_threads titles stop at the first line break
d6ae2e7
@github-actions github-actions Bot added vouch:unvouched Author is not yet trusted in the VOUCHED list. size:XS 0-9 changed lines (additions + deletions). labels Nov 28, 2026
@coderabbitai

coderabbitai Bot commented Nov 28, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

threadTitle now derives a prompt-based title from the prompt’s first trimmed line. Tests cover line separators, whitespace, first-line length, and explicit-title precedence.

Changes: Thread title derivation

Layer / File(s) Summary
Derive and verify thread titles
apps/server/src/mcp/OrchestratorMcpService.ts, apps/server/src/mcp/OrchestratorMcpService.test.ts
threadTitle uses the trimmed first line of the prompt when no nonempty explicit title is provided. Tests cover line separators, whitespace, first-line length, and explicit-title precedence.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Suggested reviewers: juliusmarminge

Merge Risk: Minimal · up to 8b0d6

Untitled threads created from a multiline prompt now get a single-line title taken from the first line. Explicit titles are unchanged. The change is small and tested, and no merge-blocking risk was found.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "fix(server): create_threads titles stop at the first line break" matches the main change: untitled threads created by create_threads now take their title from the first line of the prompt i…
Description check Passed The description follows the template sections (Problem, Change, Scope, Verification). It gives clear reproduction steps, explains the fix in OrchestratorMcpService.ts, justifies skipping an issue as a…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "fix(server): create_threads titles stop at the first line break" matches the main change: untitled threads created by create_threads now take their title from the first line of the prompt instead of the full multiline prompt. It follows the conventional commit format from the template and is specific enough for a teammate scanning history.

Full details: Description check

Explanation

The description follows the template sections (Problem, Change, Scope, Verification). It gives clear reproduction steps, explains the fix in OrchestratorMcpService.ts, justifies skipping an issue as a small obvious bug fix, and reports concrete test and real-server results. It also notes what was not checked (web and mobile sidebars). The Verification section includes the required agent model and harness line. Minor gap: the template's commit-title guidance and the note on the model/harness are satisfied, so no required information is missing.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

  • Source mode: Auto
  • Repository: pingdotgg/t3code
  • Branch: main
  • File: .coderabbit.config.ts
  • Commit: c30c775
  • Layers: Repository TS config
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 2590f04f-b2d0-4da4-8dda-27b60dab2164
Commits

Reviewing files that changed from the base of the PR and between d6ae2e7 and 8b0d618.

Files selected for processing: 1

  • apps/server/src/mcp/OrchestratorMcpService.test.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 5 remain after this review.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@juliusmarminge juliusmarminge added the takeover:in-progress A takeover lead is working on this PR label Nov 28, 2026
juliusmarminge and others added 2 commits November 28, 2026 01:45
@juliusmarminge
Merge remote-tracking branch 'origin/main' into fix/server-mcp-create…
3866374
…-threads-first-line-title
@juliusmarminge @claude
test(server): drop redundant create_threads title cases
8b0d618
Co-Authored-By: Claude Opus 5.5 <[email protected]>
@juliusmarminge

juliusmarminge commented Nov 28, 2026

Copy link
Copy Markdown
Member

Evidence

Real Linux dev servers, fresh databases, OpenCode 2.4.2 with anthropic/claude-haiku-5-5. On both commits, an agent called create_threads once with one thread, omitted title, and supplied Review the auth flow\n\nPay special attention to token renewal. Read the completed child with thread show --json. Base retained both paragraphs in the title; head used only Review the auth flow. Both retained the full initial message.

Before After
c30c775536 8b0d6187e0
Before: rendered runtime transcript After: rendered runtime transcript
Base captured JSON Head captured JSON

Images render excerpts from actual runtime output. Reproduction driver · Image renderer.

Not shown:

  • Sidebar rendering was not checked; proof uses the CLI read-back permitted by the reproduction.
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@juliusmarminge juliusmarminge added takeover:ready Takeover done; auto-lands when gates pass and removed takeover:in-progress A takeover lead is working on this PR labels Nov 28, 2026
@juliusmarminge
juliusmarminge merged commit 630fb77 into pingdotgg:main Nov 28, 2026
55 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@juliusmarminge juliusmarminge removed the takeover:ready Takeover done; auto-lands when gates pass label Nov 28, 2026
This was referenced Nov 28, 2026
[Bug]: MCP thread and scheduled-task titles keep line breaks when the title is set explicitly #44625
Closed
fix(mcp): explicit thread and task titles stop at the first line break #44626
Closed
@juliusmarminge juliusmarminge mentioned this pull request Nov 28, 2026
fix(mcp): explicit thread and scheduled-task titles keep only the first line #44641
Merged
@only21mil only21mil mentioned this pull request Nov 28, 2026
fix(mcp): t3_thread_update renames keep only the title's first line #44769
Merged
aorwall added a commit to aorwall/t3code that referenced this pull request Nov 28, 2026
@aorwall
chore: merge upstream t3code to 85d855b (pingdotgg#310)
a986b52
This merges upstream `pingdotgg/t3code` at `85d855bd82` (base
`3ed650f999`, 683 commits) with a merge commit. It is not stacked: no
other merge PR was open. The decisions are recorded under the 2026-11-28
entry in `docs/fork/upstream-merge-log.md`.

## Numbers
- Landed `1576` files, and the upstream range is `1576` files. They
match exactly.
- The fork delta is `789` files (`git diff HEAD^2 HEAD`).
- 10 conflicts, all resolved by their path-policy verdict. 60 files
auto-merged, and `duplicate-adds` and `resolution-check` are clean.

## Conflict resolutions
- **`ChatMarkdown.tsx`**: takes upstream's `useFileDownload` and keeps
the `FEATURES.openInEditor` gate.
- **`ChatView.tsx`**: `ChatRightPanel` takes upstream's `ref` and keeps
the fork's `threadRef`.
- **`Sidebar.tsx`, `useThreadActionMenu.ts` and its test**: take
upstream's `canMarkLatestRunUnread` and keep `isPublic` and
`isFollowed`.
- **`ThreadDetailsPanel.tsx`**: the Artifacts section stays after
lineage, and upstream's new Agent tasks section comes after it.
- **`FilePreviewPanel.tsx`**: takes upstream's positioned
`useFileLineReveal` and keeps `browserFrameRevision`.
- **`PreviewView.tsx`**: imports both helpers.
- **`agentContextBudget.json`**: upstream plus 108 bytes (`62578`).
`AgentContextBudget.test.ts` passes.
- **`reviewCommentSelection.test.ts`** (`theirs`): the fork's cosmetic
rename of a test title is dropped.
- **Lockfile**: taken from upstream and re-installed, which restores the
fork's edges. `verify --only lockfile` passes.

## Fixes after resolving
These were caught by typecheck and tests, not by conflict markers:
- **`sandboxControl.placement.test.tsx`** passes upstream's new required
`onCloseSelectedSurfaces` prop.
- **`rightPanelStore.ts` `retargetFile`** uses upstream's module-wide
`++lastFileRevealRequestId` (pingdotgg#44374) rather than `revealRequestId + 1`,
which could reuse another surface's id. Its tests now compare ids
relative to each other.
- **`ChatView.browser.test.tsx`**: upstream's pingdotgg#43920 case now expects
"Sandbox required", because a draft has no sandbox. The file joined
`upstream-tests-fork-assumptions` in the inventory.

## Verification
- **Static checks:** duplicate-adds, tripwires, resolution-check,
unsupported-methods, lockfile, fmt, lint, typecheck and build all pass.
- **`@t3tools/web`:** 738 of 738 test files pass. This used
`PLAYWRIGHT_BROWSERS_PATH` with a fetched headless shell 1248, because
the image now ships 1255.
- **Known sandbox failures:**
- ssh `tunnel` and opencode `OpenCodeServerLedger` fail as on the last
merge.
- `t3` fails, and `verify` marks it as the `/tmp` sticky-bit gap. The
files that fail alone are the same set as 2026-11-26, plus
`processRunner.test.ts`. That one fails inside upstream's new spawn
proxy, and the file is not in the fork delta.
- **Commit:** made with `--no-verify` because of the known knip
pre-commit failure.

## Feature classification

### Usable as-is
- Open project imports from Projects settings (pingdotgg#44662).
- Copy chat tables as text or PNG (pingdotgg#44055, pingdotgg#43435).
- Rendered markdown preview from the file tree (pingdotgg#30027).
- Multi-select side-panel tabs (pingdotgg#43946).
- Copy paths from the file sidebar (pingdotgg#43360).
- Sidebar folder Show more and Show less (pingdotgg#43598).
- Agent tasks section in Thread details (pingdotgg#29705).
- Previews keep their place across files and tabs (pingdotgg#44374, pingdotgg#44517).
- EPUB, ODT, RTF, Word, CSV and archive preview fixes.
- Command-label rendering fixes (pingdotgg#43626).
- Shortcuts on non-Latin layouts (pingdotgg#44275).
- About 40 i18n fixes.
- Password-protected previews (pingdotgg#44008). These unlock on the client but
still need the file bytes from the backend.

### Unsupported in Moatless / needs implementation
- **Download file** from the Files panel and chat links (pingdotgg#43833,
`useFileDownload.ts`). It calls `assets.createUrl` with
`draft-workspace-file` and `disposition: "attachment"`. Moatless
`crates/t3code/src/assets.rs` `create_url` refuses that tag, so every
click shows a "Could not download file" toast. This is new in `gaps.md`:
*Download file asks for an asset resource Moatless refuses*.
- **Jira Cloud and Jira Service Management trackers** (pingdotgg#38003, pingdotgg#39942).
They add `credential.fields`, the `commentAudiences` and
`assigneeSearch` capabilities, and the `refresh` and `query` inputs.
Connecting stays refused, so nothing new shows. Extends the existing
Issue trackers item.
- **Usage-limits-only refresh** (`limitsOnly`, `unreadProviders`,
pingdotgg#41726), with no Moatless producer.
- **Remote `localhost` links through a port forward** (pingdotgg#44452).
- **Built-in browser HTTP Basic Auth** (`authChallengeId`, pingdotgg#35046).
- **Subagent environment display** (pingdotgg#44393).
- **Optional contract fields with no Moatless producer:**
  - `ProviderStatus.modelsIncomplete`
  - `PullRequest.host` and `changedFiles`
  - project link `readOnly`
  - `createdBranch`
  - orchestrator `favorite`
- No RPC method was added, so `unsupported-methods` reports no ADD and
no DROP.

### Backend behavior to consider reproducing in Moatless
This is recorded as a new range bullet under *Runtime fixes upstream
made to its own server* in `gaps.md`:
- **Settlement and worktrees:**
- Settle scripts are serialized, and shared worktrees skip them (pingdotgg#44363,
pingdotgg#44491).
  - A successful settle closes its script terminal (pingdotgg#44351).
  - Settling a delivered delegated child archives it (pingdotgg#44615).
  - A partially deleted worktree stays removable (pingdotgg#44406).
- **Child and background work:**
  - Delegated completions wake the thread's own session (pingdotgg#44637).
  - `task_cancel` also cancels queued follow-ups (pingdotgg#44560).
  - A thread stays Working until a late subagent finishes (pingdotgg#44453).
  - A Monitor-woken child is not cut off (pingdotgg#43899).
- **Titles and launches:**
  - Titles stop at the first line break (pingdotgg#44597).
  - A title the provider refused is not retried (pingdotgg#44057).
  - A blank `t3_thread_launch` starts no turn (pingdotgg#44467).
  - A pre-launch message no longer strands the run (pingdotgg#44133).
- **Provider sessions:**
  - Idle threads detach from shared sessions (pingdotgg#44020).
  - `/compact` and handoff token caps (pingdotgg#44295, pingdotgg#43868).
- **Read paths:**
  - Shared thread reads for PR sweeps (pingdotgg#44369, pingdotgg#44341).
  - Filtered turn-item reads (pingdotgg#43981, pingdotgg#43549).
  - Limited rescans (pingdotgg#43969).
  - Checkpoints skip nested checkouts (pingdotgg#43744).
  - PR watches with no required checks (pingdotgg#42787).

## Owned-concern sweep
There were 3 hits: mobile app-state wakeups, the server issue tracker
host and Cursor Origin lookup. All three are upstream's own and were
taken. No new upstream workflows arrived.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---
Moatless task:
https://moatless.soaplabstest.com/tasks/1fcda118-593a-4d92-9b13-dc7667eabe2c
@omegent-app omegent-app Bot mentioned this pull request Nov 28, 2026
Merge upstream main through 0f78747290a1 patroza/t3code#688
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

size:XS 0-9 changed lines (additions + deletions). vouch:unvouched Author is not yet trusted in the VOUCHED list.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@only21mil @juliusmarminge
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.