## Why
Blank nested rows can consume a column and crowd out a wide glyph in
an aligned row. A gap before trailing blank content can also trigger
horizontal truncation when the glyph fits at the viewport edge.
## What changed
Keep blank lines in the layout height and let zero-width flex items
occupy zero columns. Clip gaps before empty fragments to the visible
width. Fill explicitly colored nested rows across their visible flex
allocation, including blank lines, without painting into sibling cells.
## Testing
Add regression tests for wide glyphs beside blank nested rows, wrapping
at the viewport edge, and background coverage with both blank and
nonblank sibling lines.
GitOrigin-RevId: 1acb06e0bb900a7f99bc06e542518708b89b7728
## Why
When Codex cannot detect the terminal background, the composer loses the
fill that sets it apart from the surrounding UI. Guessing a fill color
could hide the terminal cursor.
## What changed
Use gray top and bottom borders to mark the composer when it has no
background fill, leaving the terminal background visible. Draw the
borders only when there is room for the text area and the terminal can
render a color.
## Testing
Add a snapshot for a missing terminal palette that shows the borders
around a draft with a file mention and an image attachment.
GitOrigin-RevId: da74996fcde8f669c7b1577fa93a7744ad65e4f6
## 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
A final answer hides the Working indicator. If a Stop hook then asks
Codex to continue, the TUI can look idle while the turn is still running.
## What changed
Restore the indicator when a completed `HookPrompt` belongs to the
current running turn, both during live updates and when replaying a
thread snapshot.
## Testing
Add a regression test that snapshots the restored Working row during a
live retry, checks that snapshot replay also restores it, and verifies
that replaying the prompt after turn completion leaves it hidden.
GitOrigin-RevId: 67909c92b628ff5389ea9b417e7e5133a9acdeec
## Why
Agents could send async user messages only through a top-level tool call, even in code mode.
## What changed
Set `features.send_message_to_user_async.direct_only` to `false` to make the tool follow the session's tool mode. Direct mode exposes it as a top-level tool, code mode allows both top-level and nested calls, and code-mode-only sessions require nested calls and reject direct calls. The default keeps the tool top-level only. Existing agent opt-ins still apply.
## Testing
Add integration coverage for tool visibility, call results, and message delivery across all three tool modes with both values of `direct_only`. Improve failure diagnostics in the multiline shell snapshot test and paste `/status` as a single input event in the daemon compatibility test.
GitOrigin-RevId: c69bb2fba8bf776eff01382d8869fc869fc9d479
## 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
SSH can forward Ghostty's `TERM=xterm-ghostty` without `COLORTERM`,
leaving Codex to use an ANSI-16 palette for a truecolor terminal.
## What changed
Centralize stdout color detection in `codex-terminal-detection`. Upgrade
an ANSI-16 result to truecolor when `TERM` is `xterm-ghostty` and neither
`FORCE_COLOR` nor an active `CLICOLOR_FORCE` override is present.
Use the shared detection for TUI colors, including shimmer and activity
indicators. Share the existing Windows Terminal palette rules between
diff rendering and theme colors.
## Testing
Cover Ghostty's `TERM` fallback, explicit color overrides, and Windows
Terminal palette detection in unit tests. Exercise theme preview,
selection, and restoration with Ghostty's `TERM` and no `COLORTERM`.
GitOrigin-RevId: e7b6832fc7e721d5e2c23ef19df5fe55fbfeb21a
## Why
A URL elicitation request can include instructions users need to complete
the browser action, such as a code to enter. The TUI's “Finish in Browser”
screen previously showed only generic guidance for that step.
## What changed
Render the request message above the generic browser instructions when
confirming an external action.
## Testing
Update the URL elicitation confirmation snapshot to verify that a payment
confirmation code appears on the “Finish in Browser” screen.
GitOrigin-RevId: 85566e783341fc46d8e21ef4710b7c30687316f8
## 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
Codex needs rejected audio file IDs when reconstructing a session so
later model requests can omit those attachments. Clients only need the
turn error.
## What changed
Store rejected audio file IDs as rollout metadata and restore them from
that metadata when replaying history. Keep the existing JSONL layout
under `error.rejected_audio_file_ids` so older versions can still read
newly written rollouts.
## Testing
Add a regression test that round-trips a legacy rollout entry and
verifies that serializing the protocol event omits the rejected IDs.
GitOrigin-RevId: 982dd85d0037cebee056caf61d70988762e42767
## What changed
Remove `ChatWidget`'s prefetch and poller shutdown hooks from widget
creation, teardown, and the transition to background voice mode.
Prefetch only called the empty shutdown hook.
GitOrigin-RevId: c25c33a53d63be982d8cfebf405401a4c4f0e0c4
## Why
The TUI renders `/mcp` from app-server `McpServerStatus` responses.
The legacy renderer's snapshot still exercises grouping by qualified tool
name, a path the command no longer uses.
## What changed
Delete the legacy renderer, its hyphenated-server-name snapshot test and
fixtures, and the TUI's `codex-mcp` dev-dependency.
GitOrigin-RevId: 69f1601f19b34576ea2d9dcebdd2bfb30f414d99
## What changed
Remove the snapshot test for masking environment variable and HTTP header
values in `/mcp` output, its saved snapshot, and the HTTP server fixture
helper used by the test.
GitOrigin-RevId: d42092505760639776a779e93837a675ac14dece
## 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
## Why
When automatic reconnect failed in a remote conversation, users had to
relaunch Codex to try again and copy any unsent draft they wanted to keep.
## What changed
Press `Ctrl+R` in an eligible disconnected conversation to start a fresh
reconnect attempt while keeping the draft editable. In Vim mode, the
shortcut works in Insert mode and leaves Normal mode redo intact.
Show the retry shortcut in the chat footer, direct users back to the
conversation from the agents overview, and show a fresh timer only while
a reconnect attempt is running.
Clear stale MCP startup activity on disconnect while preserving the busy
state of an active turn. Check whether a selected slash command is
available before submitting it from the offline completion menu.
## Testing
Extend coverage for retry after timeout, draft preservation, Vim Normal
mode, reconnect status, and offline slash-command handling. Verify that
disconnect clears stale MCP startup activity while an active turn stays
busy.
GitOrigin-RevId: 0742219e891be89a78418c9b8bbc789cd660cec5
## Why
An already-loaded conversation can ignore permission overrides sent with
a resume request. Applying the preset to the TUI's launch configuration
can also carry it into later conversations.
## What changed
Resolve the preset using the selected conversation's workspace and
managed requirements. Apply it only to the initial resume, so `/new`
and later resumes use the regular launch configuration.
If an already-loaded conversation needs a settings update, read back
its approval and sandbox settings before submitting the initial prompt.
Stop the resume when the server cannot confirm the requested settings
or when workspace or managed restrictions cannot be verified.
## Testing
Regression tests cover CLI flag precedence, updating an already-loaded
conversation, rejecting unverifiable restrictions, and keeping the
preset out of new and subsequently resumed conversations.
GitOrigin-RevId: 6a09097dfc64fdeb890c03cd3e56bb404e5199c8
## Why
A resumed thread can use a different model provider from the app server's
default. A single catalog can show models from the wrong provider when the
user opens `/model` in that thread.
## What changed
Fetch and cache model lists by provider on servers that support provider
selection, and clear cached lists when the account changes. Keep the server's
default catalog available for new threads.
Apply model choices for alternate providers to the current session only.
When a non-Cloud server's catalog cannot be scoped to a provider, show the
server's default models and limit changes to the current session as well.
## Testing
Cover provider-scoped requests, fallback to unscoped lists, session-only
picker actions, and preservation of new-thread defaults after refreshing an
alternate provider's catalog.
GitOrigin-RevId: 9e82c99613dba5de73cb2210dc61835b812cedf5
## Why
After Ctrl-Z suspends Codex, `bg` continues the process while the shell
still owns the terminal. Restoring the TUI at that point can interfere
with the shell's terminal settings. A later `fg` can return the terminal
without sending another `SIGCONT`.
## What changed
Wait until the Codex process group owns the foreground before restoring
terminal modes, reading input, or redrawing. Preserve the TUI when
standard input has no controlling terminal at suspension time, and exit
if the controlling terminal disappears while waiting.
## Testing
Add PTY regression tests that check for unchanged shell terminal modes
and no TUI output during background continuation, then exercise
foreground handoff without a second `SIGCONT` and terminal detachment
on Linux.
GitOrigin-RevId: 4ee601a35c84a3e0aee984246b40bc3119c923f0
## Why
`eprintln!` can panic if stderr is closed or otherwise unwritable,
turning an attempt to report a recovery error into another failure.
## What changed
Write cursor cleanup, terminal restoration, and worktree startup
recovery diagnostics with `writeln!` on locked stderr and ignore write
errors so recovery can proceed.
GitOrigin-RevId: 476144173a3e04e0153018614c3086371885ed65
## Why
Administrators who use one gateway for managed configuration and model
requests need to configure the gateway URL and OAuth settings in two
places. A single enrollment keeps those settings together.
## What changed
Accept `[gateway]` with a base URL and `[gateway.auth]` in system
`requirements.toml` or MDM. Use the same OAuth settings for the config
server at the gateway root and the required Responses API provider at
`/v1`, with model discovery at `/v1/models`.
MDM enrollment replaces system enrollment as a unit. Requirements
composition rejects remote enrollment, conflicting config server or
provider settings, and empty or reserved provider names.
## Testing
Add composition tests for MDM precedence, remote enrollment and
rerouting attempts, and invalid or conflicting enrollment settings.
GitOrigin-RevId: 35f04481dc2b592e25afa4ac9235481cd90cf915
## Why
CLI login and interactive TUI startup could look up the same config server's
OAuth metadata again when loading managed policy, even after resolving it
for sign-in.
## What changed
- Carry the resolved config server settings in memory from sign-in to policy
loading and through TUI startup and worktree setup. Reuse them only when
the configured server, outbound proxy policy, and system proxy fallback
setting match.
- Rediscover anonymous servers after onboarding so the TUI can pick up a
newly enabled OAuth requirement.
- Use discovered OAuth settings to classify app-server startup errors as
config server errors when applicable.
## Testing
Add a regression test that blocks discovery requests and checks reuse for
matching OAuth and anonymous resolutions, as well as cache misses when the
server or either proxy setting changes.
GitOrigin-RevId: 28b5c8ffdb80db09dd8bbae3c1e187189ea393bf
## Why
Mapping the logo to a fixed character grid can stretch it when terminal
cells have different pixel proportions.
## What changed
Use the terminal's pixel and grid dimensions to scale the logo uniformly
and keep it centered in the space reserved for it. Use the original grid
mapping when usable pixel dimensions are unavailable.
Refresh the cached dimensions after resize or resume in onboarding,
startup draft input, and the main TUI, even if the grid size is unchanged.
## Testing
Update the settled onboarding logo snapshot to cover a HiDPI terminal
with 11 × 25.5 logical pixels per cell.
GitOrigin-RevId: 3a8a504e00ba80ba0acc421a8b48f64c73e465aa
## Why
Live and replayed tool calls can show raw thread IDs when subagent
metadata hasn't arrived yet, making it harder to tell which agents
were spawned or are being waited on.
## What changed
Look up missing nicknames in the background and refresh tool-call rows
in the active transcript and parked panes as metadata arrives. Use
archived subagent metadata to label older rows while keeping archived
threads out of the agent picker.
## Testing
Add regression coverage for replayed spawn rows and live wait rows
when metadata arrives late, including a subagent that closes during
the lookup. Extend picker coverage to verify that archived metadata
is cached.
GitOrigin-RevId: 47a5f585d6ebc1b0d9ac49020efeaf6c1b205198
## Why
Clearing the active thread could drop its receiver and discard unread
events. A queued close from an old stream could also trigger close
handling while the same thread was being reattached.
## What changed
Keep each receiver in its thread's event channel and look it up by the
active thread ID. When a live attachment replaces the active thread's
stream, drain pending events and skip the old stream's `ThreadClosed`
notification unless the TUI is waiting for it to finish shutting down.
## Testing
Cover switching focus away and back without losing or misrouting unread
events. Exercise same-thread reattachment with a queued close, both
with and without a pending shutdown.
GitOrigin-RevId: b58767b2666ddbb64b09e6542ec8f550538531b6
The TUI renders inventory directly from `McpServerStatus`. Remove
`mcp_inventory_maps_from_statuses` and the unit test that only exercised
its conversion to inventory maps.
GitOrigin-RevId: dbae1b541a60d490c18b50e19fca420df791c1df
## Why
Read-only Bazel runfiles can leave copied patch fixtures unwritable, and
restricted Linux environments can deny the mount setup Bubblewrap needs.
Test environments can also lack Python or use paths long enough to
produce identical truncated worktree headings.
## What changed
- Write fresh, writable copies of patch scenario inputs.
- Treat Bubblewrap's mount permission error as sandbox unavailability in
the CLI and Linux sandbox tests.
- Use `printf` and `tr` to generate output for code mode truncation tests.
- Normalize one worktree heading at a time in the overview snapshot.
GitOrigin-RevId: 88590c9c08a739ecdd4ed49bd41734b02ece3f66
Delete the agent message grouping helpers and their sole test, which
checked that a context compaction marker did not count as an agent
message group.
GitOrigin-RevId: e694196474529f101fff5893f0fcf04161024595
## Why
Going offline can change the slash command menu while a user is choosing a
command. With `/ex` typed and `/export` selected, a disconnect could move the
highlight to `/exit` and cause Enter to quit Codex.
## What changed
- Keep the same command highlighted when it remains in the menu. If it
disappears, clear the selection and prevent submission from falling back to
the draft. Restore the cursor, selection, and popup dismissal on reconnect.
- Honor configured submit chords in restricted slash command menus and prevent
Tab from queuing the draft there.
- When users try to report an issue offline, scroll to the latest transcript
entry to show the thread ID and prompt them to reconnect and retry.
## Testing
Add regression coverage for the `/export` to `/exit` case, popup state after
reconnect, offline Tab and submit chords, Vim command submission, and thread ID
visibility while scrolled back.
GitOrigin-RevId: 8143534f9d40e77a389d80d1dff3db993e194a23
## Why
`/diff` runs Git through standalone app-server commands, so it can pick up
the server's default permissions even when the active session uses a
different profile.
## What changed
- Use the session's named profile for all Git commands when the local daemon
can resolve it for the session's single workspace root. Use server defaults
when the profile depends on session-only settings or the workspace cannot
be represented by the command's working directory.
- Disable Git transports and lazy fetching for profiled diff commands.
Surface repository discovery errors under the selected profile.
- Display asynchronous diff results only when both the thread and working
directory still match.
## Testing
Cover profile fallback after reattaching to a live thread, missing blobs
without lazy fetching, and stale results from another thread or directory.
GitOrigin-RevId: be8259d8d7af536c2d542d2edce2c601ed4482d0
`collab_mode_applies_default_preset` already checks that submitting a
message sends a user turn with `ModeKind::Default`. Remove
`collab_mode_is_sent_after_enabling`, which repeats that assertion after
explicitly enabling collaboration modes.
GitOrigin-RevId: 44e27b989d3106988a629be3ff0002d53554251e
## Why
The sidebar file chooser can show and copy paths, but an open preview
has no equivalent shortcuts. The full path is especially useful when
a file fails to load and the user needs to locate it.
## What changed
Press `p` to show the full path in a scrollable view or `c` to copy
it from a sidebar preview, including when the file fails to load.
The preview reports clipboard status and can reveal the path when
copying fails or cannot be confirmed. `Esc` dismisses the path view
and returns to the preview.
Wrap long paths at directory separators where possible in both the
preview and file chooser, and let preview footer hints wrap across
two rows when space permits.
## Testing
Cover path reveal for a missing file, remapped list shortcuts in the
path view, and footer hints when a pager binding takes precedence.
GitOrigin-RevId: 480636c91a7bd7b0eb0b814dac62ce8ec9a6d783
## Why
Commands often update progress in place using carriage returns and ANSI
erase-line sequences. Treating those writes as ordinary text can leave
stale progress visible, and treating each streamed chunk as a line can
split a single update in `/ps`.
## What changed
Resolve redraws into the visible row before laying out live and completed
command output or rendering transcript entries. Preserve the unwritten
suffix on a shorter overwrite, honor line erases, and retain ANSI styling
for the text that survives. Buffer partial rows across output chunks so
`/ps` shows the latest visible lines as plain text.
## Testing
Cover split escape sequences and CRLF, styled and wide-character
overwrites, and redraws after the live output byte limit. Check that live
and completed previews agree and that replayed background terminals and
historical command fallbacks show the resolved text.
GitOrigin-RevId: cabb3d33442fbf119e23a12b2c66cb62d88bd06c
## Why
A daemon restart can invalidate the connection while a folder trust
prompt is open. A queued confirmation can otherwise still be handled
against that closed connection.
## What changed
Dismiss the folder trust prompt when the connection closes, giving the
disconnect priority over queued input. Leave the disconnect event for
the Agents overview to handle. During startup, exit with a message
asking the user to restart Codex.
## Testing
Add tests for daemon restarts during folder consent in the Agents
overview and at startup. Both check that the restart leaves the trust
setting unset. A unit test checks that disconnect wins over queued Enter.
GitOrigin-RevId: 21ee1ca625ed8bc2266a9a37a260254d4e87369d
## Why
When the TUI loses its app server connection, users can still run
local commands, but the slash menu gives them no way to discover which
commands are available.
## What changed
Typing `/` while disconnected opens a navigable menu of local commands.
Searching for a server-dependent command such as `/model` shows it as
disabled and explains that it requires a server connection. The full
menu returns on reconnect.
While disconnected, the diagnostics command shows the thread ID when available and
explains that sending a report or saving a ZIP requires reconnecting.
## Testing
Add snapshots for the disconnected menu and disabled search results,
and regression coverage for selection across redraws, completion,
catalog restoration, draft preservation, offline diagnostics, and `/q`.
GitOrigin-RevId: 835e66ad7e436227f28f62708760c91185d1b3ec
## Why
The TUI skipped the frame that flushed buffered input, so pasted text
and pending Vim replacement keys only appeared on a follow-up redraw.
## What changed
Refresh startup recovery after a flush and render in the current frame
once all editors have finished buffering. If an editor is still
buffering, defer rendering and schedule another tick.
## Testing
Update the multiline paste test to require the text to appear on the
first draw after the paste timeout. Update the startup recovery test to
check that committing a pending Vim replacement key allows that frame
to render.
GitOrigin-RevId: 8c92f075aa2c9ada3b60ecdf83b1f677ffd52f1a
## Why
Repeated turn diff updates can fill the bounded replay buffer with large
payloads and evict events needed to restore the thread. The updates only
refresh the status line, which thread replay already refreshes after
rebuilding the chat widget.
## What changed
Skip `TurnDiffUpdated` notifications when storing events for thread replay.
## Testing
Extend the replay buffer regression test with repeated 1 MiB turn diff
updates. The test checks that the store retains the pending approval and
active turn.
GitOrigin-RevId: 371bb1fc989bbb61c498840896779c5ff6479fdf
## Why
A dropped cloud stream can leave the displayed conversation without replies
that were saved while the terminal was disconnected.
## What changed
Reattach the displayed cloud conversation in the background when no user turn
is pending or running and no question answers need to be restored. Keep the
draft and queued messages while sending is paused. Check that paginated
history is complete and includes the conversation already shown before
applying it and accepting live events. If history cannot be verified, keep
sending paused and show an error.
## Testing
Add regression coverage for preserving drafts and queued messages, recovering
delayed history, rejecting incomplete history, and switching conversations
during recovery.
GitOrigin-RevId: bc38958170ea7905452cdc4fbadc838b53400641
## Why
Sorting by last update can put older tasks ahead of recently created ones, making it harder to find the newest tasks that match a search.
## What changed
Press `Tab` while editing a search to toggle between `Updated` and `Created` when the key is unbound. The footer shows the active sort, and the date column shows the corresponding timestamp.
Restart history pagination in the selected order while keeping existing matches visible. Ignore late pages from the previous sort.
## Testing
Cover the sort hint and date column, configured `Tab` bindings, and a sort switch that keeps the selected task visible while fetching newer matches by creation time.
GitOrigin-RevId: b17006c546f8f121a790f3fffc27c27035c85771
## Why
A streamed Markdown table can briefly disappear as the inline TUI moves
it from the live response into scrollback. A resize during that handoff
can also leave queued history wrapped to the previous terminal width.
## What changed
Keep the last frame visible while stream consolidation is pending, while
still accepting keyboard input. Clear and replay terminal history in the
same synchronized update. If the terminal resizes before a queued
replay is painted, rebuild it at the new width without waiting for the
resize debounce.
## Testing
Add a regression test that keeps a streamed table visible while accepting
typeahead, then widens the terminal and checks that the table moves into
scrollback and the next message fits on one line. Extend the terminal
lifecycle test to cover resuming with a replay pending.
GitOrigin-RevId: 11eb2ca0eef90e9e014383546e807cb73cdacfd8
## Why
tmux doesn't notify panes when its `mouse` option changes. Codex read
the option on screen entry, so toggling it while an alternate screen
was open could leave mouse capture out of step with the tmux setting.
## What changed
Poll the containing tmux session's `mouse` option in the background
while the alternate screen is active. Redraw on changes, even when the
TUI is idle, and reapply mouse capture for the current screen, including
nested screens such as `/resume`.
When tmux turns mouse capture off, discard queued mouse events and end
active drags and pending clicks while preserving selected text.
## Testing
Cover idle redraws on mouse changes, stale and failed probes, capture
updates across fullscreen and overlay modes, and late releases after
capture ends.
GitOrigin-RevId: a502a5e78bbc887adfe080ba2da4dbe8910f2420
## Why
A warning or paste error can break the trailing run of streamed answer
fragments. Finalizing only that run can leave part of the answer duplicated
in the transcript and after a terminal resize.
## What changed
Use the current stream's fragment count to consolidate the answer into one
Markdown cell, preserving the order of notices after it. Preserve the
transcript reader's position and active search match during regrouping.
When a visible notice splits output already printed to native scrollback,
reflow it to restore the answer and notice order.
## Testing
Regression coverage checks transcript rendering and resize reflow with
interleaved and trailing notices, search match retention, and output queued
behind a running tool.
GitOrigin-RevId: 8899a1d1d9ea0264548442001a80e1cb8948022a
## Why
Rewinding to edit an earlier prompt restores it in the composer. If a
second rewind gesture is already buffered, its Enter can submit the
restored prompt before the user edits it. [Prompt rewind behavior](https://github.com/openai/codex/pull/45845)
## What changed
Pause terminal input as soon as a rewind is queued. Drain buffered input
before showing the restored prompt, and use the same drain after forks
from a locked thread or the agents overview. Retry in bounded batches
while input is still pending, deliver buffered focus changes in order,
and recheck terminal size when the drain finishes.
## Testing
Extend PTY coverage to verify that repeated rewind keystrokes and a
trailing Escape leave the restored prompt ready for a fresh edit and
submission. Cover delayed paste completion, focus event ordering,
and terminal resize during a drain.
GitOrigin-RevId: 65ba4f343892ed3ba2eeb120172f66bfbebe120f
## Why
A question with numbered options can take focus while someone is typing
in the composer or searching a picker. A digit intended for a draft
such as `Phase 2` can then submit an answer.
## What changed
If a question opens with numbered options, wait for one second of input
inactivity and for any pending key chord to finish. Count editor and
picker input, including custom editing keys and cursor movement, toward
the idle delay.
Keep the original auto-resolution timer running while the question is
hidden and preserve the underlying picker if the question times out
after opening. Treat delayed questions as pending during startup draft
handoff, and clear queued prompts on disconnect.
## Testing
Cover digits reaching the draft before the delay and selecting options
afterward, pending key chords outlasting the idle delay, and timeouts
during paste capture or over an open picker.
GitOrigin-RevId: 6f9945c264fb8ed336041cf13b1be7c00b4b3f21
## Why
On Unix, terminals that report a background color without a foreground
color would lose both from the TUI palette. This left the composer
without shading based on the terminal background.
## What changed
Keep the background reply from startup and standalone color probes while
giving the foreground reply the rest of the existing probe window.
Use the reported background for composer shading. When either color is
missing, render the empty-state logo in the terminal's default foreground
and use the fallback color pair for shimmer.
## Testing
Cover background retention at the startup deadline, a foreground reply
arriving after the background, and rendering a shaded composer with the
logo in the default foreground.
GitOrigin-RevId: a3ce859eb04a21cfa9742d28b57fa98d4c26e0cc
## Why
Closing a sidebar tab with the mouse requires hitting a single terminal cell.
## What changed
Make the `×` and the cell on either side a three-column close target that
highlights as a unit on hover. Use spare space to widen tabs where possible
while preserving the number of visible tabs.
## Testing
Extend the side-chat interaction test to check hover styling across the
close target and verify that clicking either adjacent cell closes the tab.
Update snapshots for the new spacing and label truncation.
GitOrigin-RevId: f097eee9d613a09c511fa14f1af160c7416fe3aa
## What changed
Move the switch and close or detach hints into
`conversation_navigation_hints`. The helper shows the configured switch
shortcut when available and always includes the Ctrl+C hint.
Use named locals for the parent view's side conversation hint destination
and the chat widget's context-window visibility flag.
GitOrigin-RevId: 4dfc73fc8e353e215c0d786d02425333d86ff334
## Why
When Codex points a user to a document, image, or source line, it can
show that file alongside the conversation so the user can inspect it in
context.
## What changed
Add the `open_in_codex` MCP tool to the terminal workspace. It accepts a
file path and an optional one-based line number. Requests queue until
the calling conversation is visible and the sidebar can show the file
without taking keyboard focus from the chat.
The embedded backend loads a sandboxed snapshot using the calling
thread's workspace and read permissions. Backends without an in-process
permissions reader prompt the user to open the file. Pressing Enter in
the focused preview also opens a snapshot as a live, watched document.
## Testing
Cover queued previews when returning to the calling conversation,
sandboxed reads, confirmation before opening, and live updates after
the user opens a snapshot.
GitOrigin-RevId: ce55f2dfdc7504e2f07e26f5c6404a591eb64649
## What changed
Update the tips to cover inline mentions, steering a running turn, and
current command usage such as copying content with `/copy`. Explain how
to enter key chords and show the configured leader key. Use the active
keymap for tips on opening the agent command center and archiving a
thread there. Skip tips when a referenced binding is unavailable.
## Testing
Expand the 40-column snapshot to cover default and remapped shortcuts
alongside tips without keybinding placeholders. Check that the leader
tip is skipped when the leader key is unbound.
GitOrigin-RevId: 2a12e4021abc0365514d8e41889a4b4e9a7150ce
## Why
When a provider change triggers an account refresh for a new cloud session,
the TUI tries to read configuration that the cloud backend does not expose.
The cloud account belongs to the authenticated connection and is independent
of the thread's model provider.
## What changed
Use the cloud backend's `account/read` response directly and skip
`config/read` during the refresh.
## Testing
Add a regression test covering both a pending provider change and a different
provider returned by the new thread. It checks that the TUI sends only
`account/read`, attaches the thread, and applies the returned authentication
and plan details.
GitOrigin-RevId: a195fc6735227ff65e0347d6dd9588b64dbb6ada