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): derive imported Codex titles from user requests by Gigioxx · Pull Request #10521 · pingdotgg/t3code

Conversation

@Gigioxx

@Gigioxx Gigioxx commented Sep 7, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

Problem

Importing a Codex session could name the thread <recommended_plugins>, <environment_context>, or an # AGENTS.md instructions heading instead of the user's request, because the title came from the first line of the first user message and Codex prepends injected context blocks there.

Change

Prefer name or threadName when present in the session metadata. Otherwise, skip known leading Codex context blocks and the request heading when deriving the title. Context-only messages are skipped for title selection; imported history stays unchanged. The fix lives in the shared scanner used by onboarding imports. Existing imported threads are not renamed.

Scope and approval

Closes #10513. Maintainer triage confirmed the bug and its cause (first-line title fallback picking up injected Codex preambles): #10513 (comment)

Verification

  • Reproduced before the fix with nine failing regression cases in apps/server/src/project/AgentSessionScanner.test.ts, covering preserved message text, response-only transcripts, empty context, nullable titles, fork metadata, and streamed transcript reads.
  • After rebasing on current main: vp test run src/project/AgentSessionScanner.test.ts in apps/server, 91 of 92 passed. The one failure, excludes sandboxes reached through a symlink into the worktrees dir, is not touched by this PR and fails identically on unmodified main on this macOS machine (temp dir symlink). vp lint and vp fmt --check on both changed files: clean. tsc --noEmit for apps/server: no errors.
  • Not checked: this is a server parsing change, so no browser or client verification was performed.

Original change by GPT-6 via Codex. Rebase and description update by Claude Opus 5.5 via Claude Code.

Note

Fix parseAgentSessionRecords to derive imported Codex titles from user requests

  • Imported Codex transcripts now prefer a saved session name from metadata, otherwise derive a title from cleaned first-user prompt text (first line, up to 100 chars), and fall back to a generic title.
  • Title derivation strips recognized leading instruction, context, plugin, and request-heading preambles before extracting the first line; the original user prompt in the stored message list is never modified.
  • Extended TranscriptRecord schema with nullable optional fields for a saved session name and an alternate thread name in AgentSessionScanner.ts.
  • Added parameterized and integration tests covering preamble removal, markup handling, metadata fallback, truncation, fork metadata, and response-only transcripts.
  • Behavioral Change: existing Codex imports that relied on context markers or request headings as titles now use the cleaned first-line request text instead.

Macroscope summarized 5253a17.

Summary by CodeRabbit

  • Bug Fixes
    • Imported Codex threads now use saved session names when available.
    • Thread titles are derived more accurately from the user’s request when no saved name exists.
    • Removed common prompt instructions, markup, and headings from automatically generated titles.
    • Added handling for additional session metadata title fields.

Sorry, something went wrong.

Uh oh!

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

All reactions
@github-actions github-actions Bot added vouch:unvouched Author is not yet trusted in the VOUCHED list. size:S 10-29 changed lines (additions + deletions). labels Sep 7, 2026
macroscopeapp[bot]
macroscopeapp Bot approved these changes Sep 7, 2026
View reviewed changes
@macroscopeapp

macroscopeapp Bot commented Sep 7, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Approved at 5253a17

Macroscope's review found this PR approvable — The change is a localized fix to imported Codex thread naming, with explicit metadata fallback and well-scoped prompt cleanup while preserving stored message content. Regression tests cover the new title behavior and edge cases without introducing broader runtime or configuration changes.

No code changes detected at d56fb5e. Prior analysis still applies.

You can add or adjust custom eligibility rules. Learn more.

All reactions

Sorry, something went wrong.

Uh oh!

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

@coderabbitai

coderabbitai Bot commented Sep 7, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository: pingdotgg/t3code/.coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: 0f48a90f-8c09-4efe-8f27-3e6c99dd8d96

📥 Commits

Reviewing files that changed from the base of the PR and between 5253a177ea7d61341d86b090eb50403cbf6251dd and 2fd54a9.

📒 Files selected for processing (2)
  • apps/server/src/project/AgentSessionScanner.test.ts
  • apps/server/src/project/AgentSessionScanner.ts

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


📝 Walkthrough

Walkthrough

Codex session imports now use saved session titles when available. Otherwise, they derive titles from cleaned first-user-message text. The parser falls back to “Imported thread” when neither source provides a title.

Changes

Codex imported thread title derivation

Layer / File(s) Summary
Title resolution
apps/server/src/project/AgentSessionScanner.ts
The transcript schema accepts name and threadName. Codex metadata titles take precedence. Prompt-derived titles remove recognized preambles, use the first line, and truncate it to 100 characters.
Title derivation validation
apps/server/src/project/AgentSessionScanner.test.ts
Tests cover saved metadata titles, fork prompts, cleaned Codex prompts, fallback behavior, and title truncation. They also verify that imported message text remains unchanged.

Priority: ⬇️ Low

Estimated code review effort: 3 (Moderate) | ~20 minutes

Change: Bug fix · Severity of issue fixed: Low

Suggested reviewers: t3dotgg

Merge Risk: ⚪ Minimal · up to 2fd54

Imported Codex threads now prefer saved names or cleaned request titles while preserving history. No actionable merge-blocking issue is identified; merge after normal checks pass.

Security Architecture Review

Security architecture risk: 🔵 Low · up to 2fd54

Saved session names can now produce unusually large thread titles, increasing stored metadata and the work required to display or search threads. Existing import permissions and thread ownership checks remain in place; no privilege escalation or executable-content path was established.

Retained concerns

  • Low · security · inferred: A writable Codex transcript can now supply an oversized metadata title that bypasses the former 100-character derived-title cap. The observed creation contract accepts it, and shared title-search consumers process the full string. This can increase persistent metadata and client resource consumption, bounded by the existing transcript-reading budget. Actual denial of service was not demonstrated.
Security review details

Security Blast Radius

  • inferred — The identified exposure requires control of metadata in a local transcript that passes workspace matching and is selected for import. Its demonstrated reach is thread metadata and associated client display/search consumers; broader tenant or service exposure was not established. Production reading rejects selected history exceeding its aggregate 32 MiB budget.

Security Findings and Attack Paths

  • observed — The inspected sidebar inserts titles as React text, and desktop notifications use them as notification body text. Command-palette actions target environment and thread identifiers, not title content. These sinks do not establish an executable-content or authority-bearing title path.

Trust Boundaries and Controls

  • observed — Before importability, the scanner checks transcript workspace identity. The importer rejects cross-project thread conflicts and incompatible existing provider bindings. The changed title does not supply inputs to these controls.

Resilience and Maintainability Implications

  • observed — Import ordering remains binding installation, missing-thread creation, missing-history import, then source recording. Existing checks support repeated imports and protect newer bindings. Failures are caught per transcript, but atomic rollback was not established; no title-specific validation failure was found in the inspected contract.

Hardening Proposals

  • proposed — Apply an explicit size policy to imported metadata titles before thread creation, preserving full transcript content separately. A consistent title limit would contain metadata amplification across providers.
🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 2 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Linked Issues check ✅ Passed Issue #10513 requires imported Codex titles to use saved session metadata when available, or derive the title from the user request after excluding injected context. The scanner now prefers trimmed `n…
Out of Scope Changes check ✅ Passed The changes stay within issue #10513. They update the shared session scanner and its tests to correct imported Codex title selection. The changes preserve imported history and do not rename existing t…
Title check ✅ Passed The title clearly and concisely describes the main change: deriving imported Codex titles from user requests.
Description check ✅ Passed The description includes the required Problem, Change, Scope and approval, and Verification sections. It explains the bug, implementation, issue approval, test results, known unrelated failure, and un…
  • Fix all pre-merge checks with AI
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR

Comment @coderabbitai help to get the list of available commands.

All reactions

Sorry, something went wrong.

Uh oh!

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

@cursor

cursor Bot commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

Bugbot is paused — on-demand spend limit reached

Bugbot uses usage-based billing for this team and has hit its on-demand spend limit.

A team admin can raise the spend limit in the Cursor dashboard, or wait for the next billing cycle to continue.

All reactions

Sorry, something went wrong.

Uh oh!

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

@juliusmarminge juliusmarminge mentioned this pull request Sep 7, 2026
fix(server): derive Codex import titles from visible prompts #10522
Closed
@adamblumoff adamblumoff mentioned this pull request Sep 14, 2026
fix(server): prevent duplicate and subagent history imports #11807
Closed
@juliusmarminge juliusmarminge mentioned this pull request Sep 17, 2026
[Bug]: Imported Claude Code threads drop the user's renamed title (custom-title / customTitle) #12276
Closed
@juliusmarminge juliusmarminge added the macroscope-review Opt PRs made by unvouched contributors in for Macroscope review. Vouched contributors auto-reviews label Oct 1, 2026 — with ChatGPT Codex Connector
Gigioxx added 2 commits October 1, 2026 01:07
@Gigioxx
fix(server): derive imported Codex titles from user requests
6125975
@Gigioxx
chore: retrigger CI
2fd54a9
@Gigioxx
Gigioxx force-pushed the t3code/reproduce-and-fix-issue-1 branch from d56fb5e to 2fd54a9 Compare October 1, 2026 04:10
@maria-rcks

maria-rcks commented Oct 11, 2026

Copy link
Copy Markdown
Collaborator

Note

Written by claude-opus-5-5 on behalf of Maria

Hi! We are cleaning up open PRs, and this one appears to have been created with an older model (gpt-6). If this change is really important, we recommend rebuilding the PR with a newer model if possible.

All reactions

Sorry, something went wrong.

Uh oh!

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

@maria-rcks maria-rcks closed this Oct 11, 2026
@only21mil only21mil mentioned this pull request Oct 16, 2026
fix(server): title imported Codex threads after the user request #20278
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@macroscopeapp macroscopeapp[bot] macroscopeapp[bot] approved these changes

Uh oh!

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

Assignees

No one assigned

Labels

macroscope-review Opt PRs made by unvouched contributors in for Macroscope review. Vouched contributors auto-reviews size:S 10-29 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.

Bug: Imported Codex tasks use <recommended_plugins> as their titles

Uh oh!

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

3 participants

@Gigioxx @maria-rcks @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.