## Why
TUI preferences belong to the client. Building test settings from resolved
session fields can mask which preferences startup and reloads actually read.
## What changed
Remove the conversion from core `Config` to `LocalSettings`. Have TUI test
fixtures read preferences from the configuration layers or reuse existing
`LocalSettings`, and set runtime overrides directly on those settings.
## Testing
Update the startup test to verify that the saved agents overview grouping wins
when the resolved core field specifies a different grouping.
GitOrigin-RevId: 99a4ef475d1679e8f9ef1a870635631cad76ae40
## What changed
Reload `LocalSettings` from the effective configuration layers while
preserving the active transcript and alternate-screen modes. Reuse the
prepared settings after folder trust changes and when starting a session
from the agents overview.
Pass `LocalSettings` directly to working-directory prompts, hook review,
and history loading. Initial history loading uses a bounded item budget
when local settings are unavailable.
## Testing
Update the reload test to verify that layered preferences are applied
while the active screen modes are preserved. Check the initial history
budget when local settings are absent.
GitOrigin-RevId: e02736b7bb29e00ddfd791afa778fc0d958d358a
## What changed
Pass layer-derived `LocalSettings` through the startup draft, onboarding,
session pickers, and app launch. Refresh those settings when startup reloads
configuration, including after a resume or fork selection or picker
cancellation.
Use the local settings for rendering and screen selection, then update them
to reflect the terminal's actual alternate-screen and transcript modes.
GitOrigin-RevId: 89fcaa0c05c68e55d7de6e0052c38a48d6842d7b
## Why
A single MCP server such as `codex_apps` can expose tools from multiple
connectors. Clients that need one connector's tools currently have to
filter the server's tool inventory themselves.
## What changed
Add an optional `connectorId` parameter to `mcpServerStatus/list`. It
keeps only tools whose `_meta.connector_id` or `_meta.connectorId`
exactly matches the requested string. Servers with no matching tools
still appear with an empty `tools` map and their status. Omit the
filter or pass `null` to return all tools, and repeat the filter on
each page when paginating.
## Testing
Add integration coverage for standalone and thread-scoped requests,
including both metadata spellings, an unknown connector ID, and an
omitted filter.
GitOrigin-RevId: d6ad367dff72002b239db7b5012145ba1811ccac
## Why
The full header can clip the current grouping and its shortcut in
narrow panels.
## What changed
Use shorter header labels as space runs out and show just the grouping
in the narrowest layout. Account for the longest grouping name and the
configured shortcut when choosing a layout so the title stays stable
as users cycle groupings or move focus. Show the shortcut when it is
available and fits.
## Testing
Add snapshot coverage for Directory grouping with a custom `f11 g`
shortcut at 24, 36, and 60 columns.
GitOrigin-RevId: 9d4efe8d483d9431ff75c163a1a0ce96b7886894
## Why
The TUI used its local configuration to report permissions and approvals.
Pending profile selections could make those values differ from the
settings confirmed for the displayed thread. Legacy sandbox policies
can also hide restrictions of named profiles.
## What changed
- Use the displayed thread's confirmed permissions and approval settings
in `/status`, the built-in status line, and status line provider data.
Show unknown values in the UI when the thread has no confirmed settings.
- For named custom profiles, show the profile name and approval mode in
`/status`, including workspace roots where applicable.
- Omit ambiguous enforcement from provider data unless the embedded app
server can resolve it. Report confirmed approval settings independently.
## Testing
Add regression coverage for switching threads, retaining confirmed
settings after a rejected profile selection, and resolving enforcement
for a full-disk profile with networking disabled.
GitOrigin-RevId: f7b6c005d640ae9ede4bd132090b835ca6b7ea1f
## Why
Embedded sessions can use a local execution profile that differs from
the sandbox policy reported by the app server. The TUI needs a
server-confirmed snapshot for permission displays.
## What changed
Capture the server-reported sandbox profile, active profile, approval
settings, working directory, and workspace roots when a thread starts,
resumes, forks, or receives a live settings update. Restore the snapshot
from cached sessions and preserve it during transcript replay. Leave the
snapshot unset when session settings are inferred.
## Testing
Extend tests to cover differing server and local profiles, workspace
roots from live settings updates, and snapshot preservation during
transcript replay.
GitOrigin-RevId: 525fdfa1b526f5d799bca01c955ac7cfc3e60774
## Why
Pasting an image or an image file path could leave a temporary copy on disk
even if the image never reached the app server. Drafts still need those
copies during the session, and saved turns can reference them after exit.
## What changed
Track pasted-image copies for the lifetime of the TUI session, including
across backend switches and reconnects. Delete the remaining tracked copies
on exit. Preserve copies when a turn is admitted or when a lost response
leaves admission uncertain.
Check model support before writing a clipboard image for an ordinary
composer paste. In WSL, read PNG bytes from PowerShell's standard output
so the fallback uses the same cleanup path.
## Testing
Extend paste tests to verify that a copied image survives changes to the
source file and a change of event sender, and that cleanup removes the
copy while preserving the source. Verify that queueing a submission still
leaves the copy eligible for cleanup.
GitOrigin-RevId: 36d51af242901306be0ff319949d26a01ca71200
## Why
Git lookups for saved session directories can stall the Command Center
when a filesystem mount is slow or unresponsive.
## What changed
Group sessions by their saved working directories immediately. When
worktree support is enabled, resolve local paths with up to four
background workers and refresh the view as grouping changes arrive.
Reopening the Command Center retries completed lookups without
duplicating pending work.
## Testing
Extend the worktree grouping test to check that the initial view shows
directory groups, related worktrees regroup under their project, and
the selected session stays selected.
GitOrigin-RevId: c1411749c9db31dec5827c78cb89fe94255f0c7e
## Why
The full-screen diff pager takes the conversation off screen. A sidebar tab lets users review working-tree changes alongside the conversation.
## What changed
- Open a read-only `Diff` tab when the sidebar is available, and fall back to the full-screen pager otherwise.
- Reuse the tab on repeated runs. Keep the previous patch visible while Git runs, preserve the reading position on refresh, and apply only the latest result without stealing focus.
- Render large patches in chunks and derive scroll indicators from visible rows so redraws can skip layout of the off-screen tail.
## Testing
Cover tab reuse, stale result handling, and the visibility of the last hunk across resize and refresh. Verify that scroll indicators render without laying out the off-screen tail.
GitOrigin-RevId: 812ea99896dfd3131af9cf356cb844f4f0f7c267
## Why
Markdown image references in assistant replies showed only their alt text,
so users had to open the referenced file to see the image.
## What changed
- Show previews in place of alt text in rich transcript views on supported
terminals, including in side conversations. For example,
`` can display the chart directly in the reply.
- Confirm that the conversation uses a local workspace before loading
visible images off the render thread. Keep alt text as the fallback
when a preview is unavailable, and preserve it for copying and Find.
## Testing
Add a transcript snapshot covering inline placement and fallback text,
plus tests for selection across previews, text-only Find layout, and
terminal image sizing.
GitOrigin-RevId: 6a3473d340b8771066d1f249f3d3363e1ca9f3bd
## Why
The sidebar shortcut can hide an open sidebar, but pressing it again
can fail to bring back the content the user was viewing.
## What changed
Make the default `Ctrl+X`, `s` shortcut restore hidden sidebar content
and show “Restore sidebar” in the shortcut guide. Hide the previous and
next tab hints when there is no other tab to switch to, and show “Pane
right” when focus can move from the main pane to an open sidebar panel.
## Testing
Extend the sidebar tests to verify that the shortcut restores the same
document with its updated text. Snapshot the restore hint and the
directional hints shown when switching focus between panes.
GitOrigin-RevId: 1093039deb8390ca532ae00613c7c0e7ceb29b5c
## Why
Persisted history can still show a turn as in progress after its task
has stopped. A review interrupted by a crash can also lack an exit
event, leaving the resumed TUI in review mode.
## What changed
- Treat in-progress turns as interrupted when legacy or anchored resume
history reports a non-active thread. Preserve in-progress turns on
unanchored pages, which can include a turn started after the status
was read.
- Reconcile buffered thread status updates during resume. An idle update
clears activity restored from history while preserving newer live
turns and retaining elapsed time for a later completion event.
- Reset review state when replay reaches an interrupted turn and end
review mode at the same boundary when backtracking.
## Testing
Extend resume and replay coverage for stale and live turns, buffered
idle updates, and elapsed time when completion arrives after idle.
GitOrigin-RevId: ac46b271e86960e7e7b7e81d1c45f7ef655118fa
## What changed
- Use table-driven tests for Markdown file links, credit display, and text
truncation so related cases share setup and assertions.
- Combine checks for history search deduplication and boundaries, Vim cursor
movement with arrow keys and `hjkl`, and status-line previews that mix runtime
values with placeholders.
- Remove standalone tests and snapshots, including the Windows paused-goal
footer snapshot, while retaining the test that checks Esc pauses the goal.
GitOrigin-RevId: b508e7d46e81451186b04d4d9e9d3557596e04c3
## Why
With the composer focused, clicking below the sidebar file list left
keyboard focus in the composer. This made it harder to resume keyboard
navigation from the current selection.
## What changed
An unmodified left-click on a non-interactive area of the chooser now
moves focus from the composer to the sidebar.
## Testing
Extend the sidebar file path test to click below the file list and verify
that the sidebar regains focus and the path shortcut still works for the
selected file.
GitOrigin-RevId: dbae18a87bc6516dcb8672c0c8c7bb4b9b9ea505
## Why
A single-line jump doesn't show where a referenced block of code ends.
## What changed
Recognize file ranges such as `src/search.ts:42-44` and
`src/search.ts#L42-L44` in Markdown links and bare prose. Opening a range
in the sidebar jumps to its start and highlights every line through its
end, including wrapped rows and blank lines. If the link specifies a
starting column, mark it too. Pressing `Esc` can clear the highlight,
and it stays cleared across reloads.
Keep each wrapped link as one keyboard navigation stop, even when
fragments from different links share a table row. Preserve hidden range
destinations when copying Markdown.
## Testing
Add coverage for malformed and out-of-bounds ranges, mouse and keyboard
navigation across wrapped links, Markdown copying, and highlight rendering
across terminal palettes.
GitOrigin-RevId: 1171533053e92a61de01f90f248c58b059b3ae32
## Why
Scrollback mode could switch between a parent conversation and a live side
chat, but it could neither save side chats nor reopen them after resuming
the parent.
## What changed
- With the TUI workspace feature enabled and a compatible local backend,
save new scrollback side chats as attached threads. Use `Ctrl+/` to
discover saved chats and cycle from the parent through them and back.
- Show the current side chat's position and loading status. Keep input in
the source draft while a switch is pending, and let `Esc` cancel it.
- Delete the parent and its saved side chats in one `thread/delete`
request. The experimental `savedSideChatIds` parameter lets the server
verify that each requested chat belongs to the parent and check for
blocking attachments before deleting anything.
## Testing
Add coverage for cycling after resume, preserving pasted drafts during a
pending switch, and limiting parent deletion to verified saved side chats.
GitOrigin-RevId: 7c797f1b69dff73ff0343eb73dd3c048e856b319
## Why
A late result from an earlier turn can appear on a loaded transcript
page even when that turn's prompt and prompts from intervening turns
are still unloaded. Counting prompts from a single history boundary can
then map a visible prompt to the wrong turn. Rewinding can also remove
that late result, leaving a stale boundary for the next edit.
## What changed
Resolve prompt selections against the loaded items in each turn,
including turns with no loaded items. After a rewind, refresh the
retained transcript items from app-server so the next edit uses
boundaries that still exist.
## Testing
Cover selection of a visible prompt whose text matches an unloaded
prompt, and extend the in-place editing scenario to exercise a second
rewind after the first removes a late item.
GitOrigin-RevId: 53ec2595a56b45c2fc1077a94338215b4b0b7382
## Why
The TUI disabled PRIMARY whenever `WAYLAND_DISPLAY` was set, so it
couldn't publish selected text to PRIMARY or paste from it with a middle
click in Wayland sessions.
## What changed
Probe Wayland PRIMARY support in the background and use the result for
selection copying and middle-click paste. If the compositor lacks the
Wayland data-control protocol, allow XWayland fallback only when the
Wayland and X11 sockets have matching listener credentials.
## Testing
Add a unit test covering native Wayland support, the same-session
XWayland fallback, remote X11 displays, and unsuccessful probes.
GitOrigin-RevId: 9b5c1536762383c0fe770dd86d58a49a1f3633a8
## Why
In tmux, Kitty passthrough deletes can reach the outer terminal before
the pane updates its image placeholders. The fullscreen text redraw
can also clear those placeholders between animation frames.
## What changed
Alternate between two Kitty image IDs for the ambient pet and keep
the displayed image alive while its replacement is drawn. Reserve
both IDs alongside the picker preview so transcript images cannot
reuse them.
Preserve the pet's placeholder cells during fullscreen text redraws
that have a pet image pass, and keep clear-to-end-of-line commands
from erasing skipped cells.
## Testing
Extend regression coverage for image ID rotation and cleanup,
placeholder preservation, and visibility of the fork progress message.
GitOrigin-RevId: 58830b81c0cb18b4d3113e6b7b2ba401ae6aba31
## Why
Hiding the sidebar through keyboard navigation leaves no visible control
for reopening it.
## What changed
Click `›` in the sidebar tab strip to hide the sidebar and return focus
to the parent conversation. Click `‹` above the main transcript to
restore the previous sidebar content. The restore control also appears
when the terminal is too narrow to show the sidebar alongside the main
conversation.
## Testing
Cover hiding and restoring side chats and document previews with the
mouse, including reopening a side chat at narrow terminal widths and
preserving the parent conversation's reading position.
GitOrigin-RevId: 1f0f893b736b61c109e0761abbe3bde3d388e1b6
## What changed
Move chooser handling from `side_focus.rs` into a dedicated sidebar input
module. Distinguish events the chooser consumes from events it leaves
unhandled and events that produce an action.
Check row visibility and guard against stale keyboard selections before
resolving an open action to an agent, retry row, document, existing
chat, or new chat.
GitOrigin-RevId: 681dadbb3b964fbb886795120fa28760cb11be9d
## What changed
Move sidebar hit testing and mouse press tracking into `sidebar_input`.
Resolve pointer events before executing tab actions or dispatching input
to the visible document, subagent panel, or chooser.
Keep requiring the press and release to resolve
to the same target in the current sidebar state.
GitOrigin-RevId: a818dbfd53cbf79c97ae5036d3608c7d4d67da52
## Why
The Command Center can show action shortcuts while the conversation has
keyboard focus or while a search or rename field consumes those keys.
## What changed
Use the shared footer renderer to show a focus shortcut in the unfocused
Command Center and action hints when it has focus. Keep the editor cursor
in the active pane and hide header shortcuts when their actions are
unavailable. For example, the default `g` grouping hint disappears while
typing a search because `g` goes into the query.
## Testing
Extend the workspace navigation test to check the focus hint and cover
custom accept and grouping bindings during search and rename.
GitOrigin-RevId: a96a093b77b6ef04d717b542e30b041164d1210c
## Why
The sidebar can stay visible while the conversation has keyboard focus.
Showing sidebar shortcuts in that state makes keys such as `Esc` look
like they act on the sidebar even when the conversation receives them.
## What changed
Hide keyboard hints in unfocused panes and show the configured shortcut
for focusing the sidebar when it is available. Keep mouse controls
clickable, including the file path view's Back button when its keyboard
binding is disabled. An unmodified left click in the file path body
focuses the sidebar.
Use configured pager bindings for reading and search hints. Watch-only
agent transcripts use single-key pager bindings because they handle
pager keys directly.
## Testing
Add coverage for file path focus and mouse controls, hint placement and
click targets in narrow panes, and pager hints in watch-only transcripts.
GitOrigin-RevId: 3d9375d957789c9f71f6e45f919f815713536622
## Why
MCP forms with numeric fields fell back to a generic approval prompt,
where users had no way to enter the requested values. That prompt also
offered acceptance for forms whose required fields could not be filled in.
## What changed
- Render `integer` and `number` fields with schema defaults, validate
minimum and maximum bounds, and submit answers as JSON numbers.
- Show the requesting server on forms, allow users to skip blank optional
inputs with the submit key, and add `F6` to decline a form. `Esc` cancels
the request.
- Explain when a form cannot be displayed and offer acceptance without
answers only when the form has no required fields.
## Testing
Exercise invalid numeric input and defaults, exact large integer
submission, blank optional fields, and queue advancement after declining.
Snapshot the numeric validation error and the fallback prompts for
unsupported forms with and without required fields.
GitOrigin-RevId: 1dd65b78fb271a027d9ae479c6fc9754607189f2
## Why
A background command can outlive the turn that launched it. Its result
could be dropped when no turn was active or appear as a separate
transcript entry if later output had already displaced its running row.
## What changed
- Show background commands as they start, including commands that don't
match a recognized tool action. Keep tracking their exits after a
turn ends or is interrupted.
- Update the original transcript row with the exit status and output,
including when the command finishes in a parked side conversation.
- In rich terminal scrollback, label an unfinished launch `Started`.
If the launch has already printed, append the result in order.
Otherwise, replace the queued launch with the completed entry.
## Testing
Cover late exits after turn completion and interruption, completion
during a side conversation handoff, and result ordering behind queued
scrollback.
GitOrigin-RevId: 65f069af28c112078d85613da2c95e5c1c4f29bf
## Why
Looking up a session by ID treated every `thread/read` failure as a
missing session, hiding errors such as unreadable session metadata.
## What changed
Startup resume and fork report lookup failures after cleaning up the
app-server session. In an active TUI, `/resume` displays lookup errors
in the current chat or invokes transport recovery when applicable. If
a Cloud chat must be opened first, `/resume` directs the user to run
the command without an ID and select the chat from the picker.
## Testing
Add regression coverage for missing and unreadable sessions, preserving
the active session after a failed lookup, and showing picker guidance
for an unopened Cloud chat.
GitOrigin-RevId: dddac289a2959133809c050b8701975ab474ef13
## Why
Refilling terminal scrollback can take several history pages. Replaying
scrollback after each page rebuilds it while more history is still loading.
## What changed
Buffer older pages while the next page is loading, then replay them together
when the refill finishes. Flush buffered history if a page request fails,
the transcript overlay opens during the refill, or the five-second deadline
from the first buffered page expires. The overlay still updates page by page.
## Testing
Extend the scrollback refill test to cover batching across pages, replay
after a page failure, and replay at the deadline with a request still pending.
GitOrigin-RevId: 577b9f7394e2741267099e4595f69345a6a70a21
## Why
A terminal can report a focus gain between mouse-down and mouse-up.
Clearing the pending sidebar press on that event causes the release to
be ignored, so clicking the tab chooser's close button can fail to open
the confirmation dialog.
## What changed
Keep the pending sidebar press on `TuiEvent::FocusGained` so the mouse
release can complete the click.
## Testing
Extend the tab chooser test to send a focus gain between the press and
release and check that the close confirmation dialog appears.
GitOrigin-RevId: 4173292c50383304e9ef62104251434be7580789
## Why
Rapid mouse motion can queue more drag reports than the TUI needs to
resize a pane. Rebuilding sidebar document layouts at each preview width
also adds work while the divider moves.
## What changed
- Share drag handling between the Command Center and sidebar dividers.
Let users grab either column of the Command Center gutter, keep the
grab offset, and highlight the divider on hover and during a drag.
- Use the release position for the final width. If focus loss interrupts
a valid drag, keep the last width. When the terminal holds image pixels,
show a guide and defer pane reflow until the drag ends.
- Batch consecutive mouse motion reports during divider drags while
preserving input order at batch boundaries. Rewrap cached sidebar
document content during live previews and rebuild its layout at the
final width.
## Testing
Cover gutter hit testing, grab offsets, release and focus-loss behavior,
drag batching at input boundaries, and document layout reuse during
preview followed by a rebuild.
GitOrigin-RevId: 949a805a42d269f4bac1a86ac7e4b7f8c2a4cacf
## Why
Copying a whole message can leave the overlay showing “Copying selection…”
because the copy has no active selection to receive the clipboard result.
## What changed
Track which clipboard request owns the notice so its completion can show
success or failure even without an active selection. Older results leave a
newer notice intact.
Track the last rendered transcript width for resize detection and render
prewrapped rows without hyperlinks using Ratatui’s `Paragraph`.
## Testing
Add a snapshot test that checks pending, failure, and success notices
without a selection, verifies that an older result leaves the notice
intact, and confirms the overlay stays open.
GitOrigin-RevId: c4076ccc425240ca39af9fd5c8cf6fca96303dda
## Why
The sidebar can learn about a subagent from live activity before it can
open the transcript. During that gap, the chooser can offer a row whose
transcript is still unavailable.
## What changed
- Start transcript discovery when the TUI observes subagent activity
and retry when the chooser opens with disabled rows.
- Keep starting and unconfirmed subagents visible but skip their rows
during keyboard and mouse selection. Show whether an unconfirmed
transcript is loading or unavailable once the subagent leaves
`Starting`.
- Resolve provisional status from discovered threads, including idle
and unloaded ones, while preserving newer live outcomes. Open
transcript links only after discovery confirms the subagent.
## Testing
Extend TUI coverage for discovery retries, status updates arriving
during discovery, disabled row navigation and clicks, and transcript
links that wait for a follow-up refresh.
GitOrigin-RevId: e4d3b992830884532531239507083e4bd2df6687
## Why
The ChatGPT plan shown in `/status` can differ from the plan reported alongside the rate limits. Refreshing the limits could leave the card showing the old plan.
## What changed
Use the cached quota plan for new status cards when available. If a rate-limit refresh changes the plan label, update the existing card in place, including when `/status` runs before a thread starts.
## Testing
Cover a rate-limit response that changes the label from Plus to Pro 200 in terminal scrollback, copied status output, and subsequent `/status` cards.
GitOrigin-RevId: c8def774ac2b344a2bb14b5eb834dec1d07d0099
## Why
The terminal's bidirectional layout was already used for scrollback, but
full-screen transcripts could still show mixed right-to-left and left-to-right
text in source order.
## What changed
Use the terminal's bidirectional layout setting in the live transcript,
history pager, and resume picker previews. Reorder each wrapped row for
display and map its screen columns back to the source graphemes. This keeps
hyperlink hit targets and search highlights aligned with the displayed text.
Mouse selection follows the displayed glyphs, while copying preserves source
order.
## Testing
Add regression coverage for mixed Arabic, Hebrew, and Latin text across
terminal widths, including link hit targets, highlights, and logical text
order. Exercise mouse and keyboard selection and verify right-to-left
rendering in the resume picker preview.
GitOrigin-RevId: ea0518ea8791d0fcc031dd0ebf306775918f373b
## Why
A resumed thread can use a different provider from the server default.
A successful account quota read can then show warnings and banners for
quota the thread does not use.
## What changed
Apply account quota reads and prefetch quota only when the active
provider uses account quota. Preserve remote provider definitions when
reloading local preferences, refresh custom provider definitions on
remote resume, and clear cached quota when the provider or its
definition changes.
For providers with independent quota, use turn updates for warnings and
composer notices. Keep omitted windows from sparse updates, clear the
notice when reported usage falls below the warning threshold, and omit
the `/status` hint. Limit the model-switch prompt to the built-in OpenAI
provider.
## Testing
Extend coverage for starting and resuming sessions across providers,
including an authentication change under the same provider ID. Verify
that custom-provider turn updates can show and clear a quota notice
without triggering a model-switch prompt.
GitOrigin-RevId: 4e6c95efe46ec420cee7b09d5f5a94862307530c
## Why
Codex stored voice selections in `realtime.voice` and supplied voice overrides when starting realtime sessions. Reading and saving the ChatGPT account preference lets Codex use the same voice selection as ChatGPT.
## What changed
- Add experimental `account/voiceSettings/read` and `account/voiceSettings/write` methods. The terminal voice picker shows the selected voice and available display names, then saves the chosen voice ID to the connected app server's ChatGPT account, including when the server is remote.
- Require ChatGPT sign-in for terminal voice chat and create its WebRTC calls through the ChatGPT backend.
- Remove voice overrides from realtime session startup. Existing `realtime.voice` entries still parse but are ignored.
## Testing
Cover voice picker loading and saving, remote catalog failures, the ChatGPT sign-in requirement for local calls, and omission of voice overrides from realtime call payloads.
GitOrigin-RevId: 9e6f30b8020c47701d3c1604075063924f191685
## What changed
Use `terminal_capabilities` to select notification protocols, apply
Ghostty's 255-byte notification limit, and provide the focused-window
notice for notification tests. Reuse the shared tmux passthrough encoder
for OSC notifications.
Move program-status support checks and startup telemetry labels into the
same module.
## Testing
Extend the OSC 9 capability test to verify the notification body limit
for each supported terminal.
GitOrigin-RevId: ef3c9806dfafceba77cce3714073472224f1d173
## Why
Terminal checks for clipboard behavior are spread across the clipboard
worker, local settings, and right-click paste handling.
## What changed
Use `terminal_capabilities` to determine whether the terminal forwards
copy shortcuts or handles paste itself, whether X11 primary selection is
available, and how to send OSC 52 through tmux or GNU Screen. Have TUI
callers use the same SSH and WSL session checks.
Keep the automatic copy-on-select decision in settings and base it on
whether the terminal forwards the copy shortcut. Route tmux clipboard
copies through the client buffer with OSC 52 as a fallback.
GitOrigin-RevId: 623599783b70d66a06c52458fc82305a422cf507
## What changed
Have startup and screen code consume capability decisions for inline mode,
Kitty graphics, mouse capture, session polling, and pointer reset. Keep
terminal and multiplexer detection behind the capability helpers for these
decisions.
Share stdout color detection between the CLI and standalone TUI exit
messages, and use the TUI's terminal warning helper for the CLI startup
confirmation.
## Testing
Exercise mouse-capture cleanup in separate Kitty and Ghostty test processes
and verify that each emits its expected OSC 22 reset sequence.
GitOrigin-RevId: 15cb972034397e521a97c2813628533b71539530
## Why
Terminal-specific checks are spread across rendering and scrollback code.
Independent capability queries let callers share those checks without
starting unrelated terminal probes or caching live settings together.
## What changed
Move scrollback strategy, title encoding, and Markdown link display
decisions into `terminal_capabilities`. Route color detection and resize
reflow limits through the same module. Rendering and scrollback code
apply the selected modes.
GitOrigin-RevId: 6803e4b50ff5d3517efb5c07474d9ce17690e12d
## What changed
Summarize tool calls and collapse completed turns when
`tui.collapse_turn_details` is unset, including when the entire `[tui]`
table is absent. Set `tui.collapse_turn_details = false` to opt out.
Keep patches out of tool-call summaries so their inline diffs stay
available for review during approval. Record the configured setting at
startup with the `codex.tui.collapse_turn_details` counter.
## Testing
Update configuration tests to cover the new default and an explicit
opt-out.
GitOrigin-RevId: 8a1de12bd2a26f445bbc1eee68f31fe93fe4925a
## Why
The divider between the command center and the conversation pane is
draggable, but it lacks the resize cursor that signals this on the
sidebar divider.
## What changed
Show the resize cursor when the pointer is over the workspace divider
and keep it visible while dragging. Use the same hit test for hover and
drag start, and track sidebar divider highlighting separately from the
cursor shape. Clear workspace drag state when focus is lost or tmux
mouse support is disabled.
## Testing
Extend the workspace navigation test to cover cursor changes on hover,
press, drag, release, and focus loss, and verify that dragging moves
the divider.
GitOrigin-RevId: f63db5196bb73d28df3f341646f767394982b357
## Why
A pending steering message offers a shortcut to interrupt the running turn
and send the message immediately. If Codex accepts the message before the
terminal redraws, pressing the shortcut while that hint is still visible
can interrupt the turn even though the message has already been accepted.
## What changed
Track whether the interrupt-and-send hint appeared in the last terminal
frame. If Codex has since accepted the last pending steer for the running
turn, ignore one interrupt press and its key repeats and briefly show
“Message received. Ignored one interrupt.” A fresh press can still interrupt
the turn. If the hint was never drawn or a redraw has removed it, the first
press interrupts as usual.
## Testing
Add regression coverage in both TUI rendering modes for an interrupt before
and after redraw, a hint that was never displayed, held-key repeats, and an
image submission in progress.
GitOrigin-RevId: 8be3bd51c623af44c108987fe0c2148eeb4515c7
## Why
Some test fixtures depend on `python3` being on the host's `PATH` or
on reading Rust's process arguments from a constructor. Bazel workers
need a declared Python runtime, and musl does not provide those
arguments to constructors.
## What changed
- Put Bazel's Python 3.12 runtime on `PATH` for Linux test suites that
invoke `python3`, including their Wine launchers.
- Use standalone helper binaries for exec-server and sandbox fixtures on
musl, and read `/proc/self/cmdline` for the MCP hook fixture.
- Add launcher options for test execution tags and for routing selected
Linux cases to a local companion target that shares the test binary.
- Adjust test fixtures for platform differences in file creation
timestamps and shell script execution. Keep cloud-config error tests
pointed at their mock server after startup falls back to defaults.
## Testing
Exercise marketplace upgrade negotiation at Git 2.20 and check whether
the installed Git supports limiting the refs advertised by the clone.
GitOrigin-RevId: 3a83cde954d52ca29d346d67488c9a25c0790614
## Why
Dynamic tool clients could return JSON as text in `contentItems`, so Code Mode scripts had to parse that text to access fields in the result.
## What changed
App server dynamic tool requests advertise `supportedResultFormat: "structuredContent"`. Clients can reply with `structuredContent` and a `success` flag, report a failure with `errorMessage` and `success: false`, or continue using `contentItems`.
Code Mode exposes structured replies as MCP-style tool results, with the original JSON under `structuredContent` and failure status in `isError`. Completed tool items include a text representation of the reply. Matching post-tool-use hooks can receive the structured result for successful calls.
## Testing
Add protocol tests for the wire formats and rejection of ambiguous replies, plus an app server integration test that exercises structured results, content items, and errors through Code Mode.
GitOrigin-RevId: d63152633b43bd5bd236f6e0dcb41ee7e98e7947
## Why
A native clipboard write inside a dev container can succeed on the
container's desktop while leaving the host clipboard unchanged.
## What changed
Detect VS Code dev containers with `REMOTE_CONTAINERS=true` and route
clipboard copies through tmux or OSC 52. On Linux with a nonempty
`WAYLAND_DISPLAY`, use the native clipboard for copies over the
100,000-byte terminal limit and retain clipboard ownership.
Host delivery remains unconfirmed on both paths. The copy status asks
users to try pasting and points them to `/export` if the text is missing.
Keep that status out of exported transcripts.
## Testing
Add coverage for dev container detection, terminal send success and
failure, and clipboard ownership at the terminal size limit and one
byte over it.
GitOrigin-RevId: 057f7956fce8a16c8a3022b697e443b524740376
## Why
The terminal pet could settle into its idle animation while a task was
still running or waiting for approval. Its running notification also
expired after three minutes, even if the task was still active.
## What changed
Use the terminal program status to select the pet's reaction on redraw.
Loop the running, waiting, and failed animations while their notifications
are active. Play the review reaction three times before returning to idle
animation, and clear the reaction when the program status returns to idle.
Apply the same playback rules to custom task animations.
Schedule animation redraws only when the pet can be drawn and the sprite
can change. A pet that cannot fit or is covered by the shortcut HUD
requests no animation frames.
## Testing
Extend tests to check sprite selection through approval, completion,
failure, and acknowledgment, along with custom animation playback and
redraw scheduling when the pet is hidden.
GitOrigin-RevId: 09ef2a8558190eb2f63f5c286b4271838f228f67
## Why
The agent center's `Home` and `End` shortcuts skipped the **Show more**
row, so pressing `End` could stop before the last selectable row.
## What changed
Jump to the first or last selectable row and preserve whether **Show
more** is selected across view refreshes. Reconcile selection when
toggling search on and let the cancel shortcut dismiss search even when
the view cannot return to chat.
## Testing
Add a regression test that presses `End`, `Home`, and `End` across
view refreshes and verifies that `Enter` on **Show more** requests
another page.
GitOrigin-RevId: e508c7926ce83b68c229d638364e6e41f671490e
## Why
Required MCP servers can finish at different times even when their startup
notifications arrive together. Notification arrival times cannot show how long
each server took to start.
## What changed
Measure each startup attempt and expose its elapsed milliseconds as
`durationMs` on `ready` and `failed` updates from
`mcpServer/startupStatus/updated`. Successful Codex Apps reconnects report
their own duration. Reused connections, `starting`, and `cancelled` updates
carry `null`. The protocol accepts notifications from older servers that omit
the field.
## Testing
Cover distinct durations for fast and slow required servers, timing through
lease registration for newly opened shared connections, and a fresh duration
after Codex Apps recovery.
GitOrigin-RevId: 39c0c418149dd2b220828be04d998085f57acf2d