## Why
When a filename is already taken, saving a conversation with `/export` ends
with an error. Users have to restart the export to choose a different name.
## What changed
Show a conflict picker with options to choose another name, replace the
existing file, or cancel. Choosing another name pre-fills an editable
numbered filename, such as `notes-3.md` when `notes.md` and `notes-2.md`
already exist.
Offer replacement only for regular files. After confirmation, check the
directory and file identities and use an atomic rename to install the new
transcript.
## Testing
Cover the picker actions and numbered filename suggestion, verify that
replacement requires confirmation, and check that replacement rejects a
changed file or redirected directory.
GitOrigin-RevId: edcb2fad858bab15a7228c69bd27a8ffd18e8d05
## Why
A fresh session could send client-side execution settings as thread
overrides, even when the destination app server had its own defaults.
The TUI also needs the destination settings when preparing the first turn.
## What changed
Use the destination defaults to prepare the first turn for session
replacement, starts from the agents overview, and backend switches.
Keep explicit launch choices and managed new-thread defaults in the
start request, and let the server resolve its own model and reasoning
effort. When `config/read` is unavailable, omit implicit execution
overrides and avoid replacing server instructions with terminal
visualization text alone.
## Testing
Extend session replacement tests to check the start request and first
turn, including shadowed launch settings, server instructions with
terminal visualization enabled, and compatibility with older servers.
GitOrigin-RevId: d66d6d51495ee067282514a138f7e39abfd91f2f
## Why
A TUI resume request could override a thread's saved service tier with a
configured tier, a model default, or the local Fast default opt-out.
CLI forks could also send a tier before the destination's settings were
resolved.
## What changed
- Send a tier on resume or CLI fork only when the invocation supplies a
tier override. In-app forks carry the current session's tier.
- On fresh startup, use the invocation's tier choice first, then the
managed default, then the startup configuration. Keep an explicit
reset (`serviceTier: null`) distinct from omitting the field.
- Use the current local Fast default opt-out when resolving tiers for
new sessions and honor feature gating for launch overrides.
## Testing
Extend request assertions to cover tier omission on resume and CLI fork,
`flex` on in-app fork, and both explicit reset and disabled Fast mode on
fresh startup.
GitOrigin-RevId: d74f0f5e98506a0d5a6ead7106e1042691d41d41
## Why
Resuming with only a model or reasoning-effort override could also
send the other value from the TUI's resolved config, overriding saved
thread settings. Startup forks could similarly carry an unrelated
default into the destination.
## What changed
Build thread requests from explicit launch overrides. Resolve model
and reasoning effort independently from invocation options and the
selected profile, honoring config precedence. On resume, omit unset
fields so the app server can restore saved values. On startup fork,
let the destination config supply unset fields.
Carry accepted model migrations into resume requests and apply managed
new-thread model defaults on fresh starts without a launch model or
effort choice.
## Testing
Extend resume coverage for model-only and effort-only requests and for
a launch effort shadowed by higher-priority managed config.
GitOrigin-RevId: 5190d9b820a36c4da6a179fbdbca27591b1e8541
## Why
An unsupported UI tag or property invalidates the entire statusline
response, so providers need a fallback for clients whose rendering
capabilities are unknown.
## What changed
- Document the available UI elements with examples for wrapping rows,
spacing fields, preserving whitespace, and displaying status badges.
- Explain how to use `app.cli_version` to check support for features such
as `spacer` and `maxLines`, and return a plain string for the entire
footer when support is unknown or absent. Carry the `spacer` guidance
into the generated TypeScript reference.
- Clarify how to diagnose provider discovery failures with F2 and check
`tools/list` metadata when a provider is missing from the picker.
## Testing
Update the scenario snapshot that verifies an explicit statusline skill
mention loads the bundled guide.
GitOrigin-RevId: 9c6ea1d356146c2d666359732d6a065ed41d9fee
## Why
The mouse wheel scrolls the help view, but browsing a long task list
requires keyboard navigation. Once the list can scroll independently of
the selection, task shortcuts need to account for an offscreen target.
## What changed
Scroll the task list without moving the selection, and keep task titles
reachable in short viewports. When the selection is offscreen, show a
reveal hint and make the first task shortcut bring the selection back
into view. Keyboard navigation resumes following the selection.
Suppress repeats from the key that revealed the task so holding a
shortcut such as Stop cannot immediately act on it. On Windows, peek at
queued console input to account for press/release pairs emitted by
legacy ConPTY input.
## Testing
Cover wheel paging and short viewports with a rendering snapshot, test
that Stop requires a fresh press after revealing a hidden selection,
and verify that the Windows release probe leaves queued input intact.
GitOrigin-RevId: ebd7c0993978de3fc07245adf930f9fc63b306c1
## Why
Short terminals can cut off agent center shortcuts and require a resize to
read them. Status filter tabs and their overflow arrows are visible but
require keyboard navigation.
## What changed
- Scroll help with the configured list navigation keys or mouse wheel.
Show a scroll hint when help extends beyond the viewport.
- Click a status tab to filter tasks, or click an overflow arrow to
select the adjacent hidden tab. Overflow arrows also work in Analytics.
- Display `/` as the primary search shortcut and retain `F3` as a binding.
## Testing
Extend regression tests for help scrolling, task paging after resizing
in help, and mouse clicks on filter tabs and overflow arrows.
GitOrigin-RevId: b01b465626a681ca48a6e20547a24cf715a9a406
## Why
MCP refresh traces show how long an operation waits for the refresh gate, but they lack the timing and operation labels needed to identify which refresh held it.
## What changed
- Tag refresh wait and hold spans with a shared gate ID and the operation name so overlapping spans show which operation held the gate while another waited.
- Carry the scheduling trace context into background MCP prewarm and add a span for the Apps catalog refresh.
## Testing
- Add a test that checks the exported wait and hold spans share a gate ID and overlap while a second operation waits for the permit.
- Make the worktree TUI test wait for the `Ready` run state before submitting input, since a directory change can appear while the composer is still busy.
GitOrigin-RevId: be2b6d2a82e4a5b553fb3f335850865f04a181ee
## Why
Serde's derived decoders could accept positional arrays for values the UI
tree schema defines as objects. For example, row props could be written
as `[1, "red"]`, tying their meaning to the order of Rust fields.
## What changed
Require JSON objects for typed elements and their props while retaining
literal string nodes and child arrays. Pass object fields directly to
the derived decoders so duplicate and unknown fields are still rejected.
## Testing
Add regression cases for positional props, positional elements at the
root and inside children, and duplicate keys. Verify that named row
layout props round-trip through JSON.
GitOrigin-RevId: 81fbd048e8b7b1df6b453d97c9e16e8194a451a6
## Why
TUI copy tests can verify the text sent to the clipboard and `PRIMARY`
without depending on the host clipboard or waiting for a background worker.
## What changed
Give each test TUI its own in-memory clipboard and `PRIMARY` selection.
Handle requests inline and expose completions through the normal worker
polling path.
## Testing
Assert copied text in transcript, sidebar preview, and turn tip tests.
Verify that a second TUI's copy leaves the first TUI's Markdown clipboard
text and plain-text `PRIMARY` selection available for paste.
GitOrigin-RevId: 159845b17f0dac26b4b12c3851c101afe8d21d2d
## What changed
Offer “Use Google Cloud Vertex AI” during eligible terminal onboarding
without requiring users to set `gcp_setup_wizard = true`.
## Testing
Use the feature default in the Google Cloud setup flow test and explicitly
disable the Google Cloud wizard in the gateway-only onboarding case.
GitOrigin-RevId: 098c3842623de13aa9c4852e188f225923c5c5d9
## What changed
Offer “Use a custom provider or gateway” in eligible terminal sign-in flows
without requiring users to set `features.gateway_setup_wizard = true`.
## Testing
Exercise the default in the gateway onboarding test, which verifies that the
selected gateway authenticates before receiving the first chat request.
GitOrigin-RevId: e140b13dc12ebe9b35f37711d5b088fd02a0707c
## Why
When the TUI omitted the provider ID, the app server defaulted to
`amazon-bedrock`. Bedrock onboarding needs to select `amazon-bedrock-runtime`
for the first thread.
## What changed
Pass `AmazonBedrockRuntime` explicitly when onboarding with an API key, an
AWS profile, environment credentials, or manually entered AWS credentials.
## Testing
Extend the daemon startup integration test to accept credentials detected in
the running daemon and verify that the first thread shows
`amazon-bedrock-runtime` in the status line. The test leaves the model unset
so the thread uses the selected provider's catalog.
GitOrigin-RevId: 57753a29c77b0bd1bcbb0494057770329cd0b67d
## Why
On Windows, a case-folded trust key can make a Git root appear as a
separate path in the folder trust prompt even when it is the current
directory.
## What changed
Display the Git root with its original casing when it matches the
current directory. Keep the selected trust key for saving the decision
and continue to show distinct trust targets.
## Testing
Cover mixed-case Git roots in trust resolution and verify that the
prompt displays a single path for a matching root while keeping
distinct targets visible.
GitOrigin-RevId: 95b459dbcb8acf0611da8b04a1a413e56663f1e4
## Why
Blank gaps in nested rows can shift end-aligned text when a row is
clipped. Blank lines can also lose their inline code or flex background.
## What changed
Suppress unpainted gaps on blank lines in aligned rows while preserving
spacer padding that clipping can reclaim for the ellipsis. Paint inline
code gaps and fill explicit flex backgrounds through the visible height
of stretched bands.
## Testing
Add rendering regressions for clipped end alignment, ellipsis placement
next to a wide glyph, and background coverage on blank lines.
GitOrigin-RevId: 2fc9d4b651dbf8a3cd8f63867bc6730a3bebd3ac
## What changed
Render named `icon` elements inline with terminal text. Badges can
display an icon on its own or place it before or after a label. For
example, a success badge can show a `check` icon next to “passing”.
Keep icons intact when wrapping or truncating text, including icons
that span multiple cells such as `code` (`</>`). Expose the new
element and badge combinations in the bundled TypeScript contract.
## Testing
Add coverage for icon and badge rendering, whole-icon truncation,
invalid icon payloads, and badge children counting toward the UI tree
node limit. Update the TypeScript contract fixture to exercise a badge
with a leading icon.
GitOrigin-RevId: 8a5afb0662a71cf1b5d16400b9866cb414c11646
## Why
Custom status lines need a way to display grouped entries with automatic
numbering and keep wrapped lines aligned with the item text.
## What changed
Add `list` and `list-item` to the UI tree and the bundled TypeScript
contract. Each direct child of a `list` is an item. Use `list-item` to
combine multiple elements under one marker.
Lists use bullets by default and accept `number` or `none` as alternatives.
Wrapped lines align with the item text, and nested numbered lists start
their own count.
## Testing
Add renderer tests for wrapping, nested numbering, marker placement in
rows, clipping, and background preservation. Extend the decoding and
TypeScript contract tests to cover invalid markers.
GitOrigin-RevId: 991d230357f035ccbe7e52956ef1cbfe5b1e2174
## Why
Rate limits and thread usage can arrive after `/status` is displayed.
Updating a status card already in terminal scrollback required rewriting
history and depended on where the card was rendered.
## What changed
- Show the report in a scrollable modal with Overview, Configuration, and
Session tabs. Apply rate limit and thread usage results to the open report
without writing status output to the transcript or terminal scrollback.
- Copy a selected field or the full report directly from the modal, and open
usage settings from the same view. Remove status fields from the `/copy`
picker.
## Testing
Add coverage for overlapping refreshes, dismissal during account or thread
changes, keyboard navigation and copying during an active turn, and scrolling
in a narrow terminal.
GitOrigin-RevId: 64961c4d013607e373d50a79182b74e3048c632f
## Why
Reattaching a cloud reply stream after a disconnect can leave gaps in
the transcript. Queued follow-ups also need to wait until the TUI has
caught up and knows whether a turn is already running.
## What changed
- Automatically resume eligible idle cloud conversations with history
recovery. Replay missed items and repair partial replies in place while
preserving the draft and native terminal scrollback.
- Hold queued follow-ups until the reattached stream has delivered its
pending events and any active turn has settled.
- Reconcile queued async question answers against recovered history.
Drop answers already recorded and return unresolved unsent answers
to the composer for review.
## Testing
Add regression coverage for transcript repair, scrollback preservation,
queued input during catch-up, and async question answer recovery.
GitOrigin-RevId: 3378479ff886204cdc473a701ef51b3fc8b6b5c0
## Why
Side chats disabled `/archive`, so users couldn't archive the current
side chat from the composer while the sidebar was hidden.
## What changed
Show a confirmation in the composer even when the sidebar is hidden.
Warn about stopping a running turn, discarding unsent input, or losing
temporary chat history when applicable.
On confirmation, return focus to the parent chat's composer. Archive
saved side chats and remove them from Side chats. Close temporary side
chats and discard their history after cleanup succeeds.
## Testing
Cover saved side-chat archiving, including retry after a failed archive,
and verify that a temporary side chat stays accessible with its queued
input when cleanup fails.
GitOrigin-RevId: 1bbe25a241719cdc2722bc8db915dea9111b6fc9
## What changed
Let the transcript reader paint into a caller-provided frame and area,
returning the delay for the next search or history-loading frame. Split
event preparation, including clipboard completions and selection ticks,
from input dispatch so the app can refresh visible rows before handling
selection input.
Extract transcript reader construction and centralize the app's overlay
input checks. Route draft snapshot flushing through `ChatWidget`.
GitOrigin-RevId: c5e093f585e264c4ffea51ebfcff0b08a1c3ff93
## Why
Switching away from an idle composer can write to the terminal even when
there are no animations to clear. Regaining focus already triggers a draw.
## What changed
On focus loss, request a redraw when composer sparkles are visible or
when an active empty-state replay is canceled.
## Testing
Add a PTY regression test that checks for zero terminal output after idle
focus loss and verifies that input is accepted immediately after focus
returns, in both inline and fullscreen modes.
GitOrigin-RevId: c961a4274049b98fff7307092f6ac89d51cf8e95
## 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
## What changed
Reuse the local settings bootstrap parser on the final in-memory config
layers before applying TUI startup preferences.
## Testing
Extend the local settings test to check parity with preferences derived
from the full config and verify that a managed layer seen only by the
final load overrides the startup values for paste burst handling and
alternate screen mode.
GitOrigin-RevId: a8cc2fd667ca10fb9765be429974bd04c634e9c0
## Why
The startup folder trust prompt needs separate controls for quitting Codex and returning to the Agent Command Center.
## What changed
Use `Esc` or **Back to Agent Command Center** to return to the overview. Press `Ctrl+C` to cancel startup and shut down the session. Show the quit shortcut when the footer has room for it.
## Testing
Add a PTY regression test that sends a single `Ctrl+C` and checks for a successful exit, a cleared prompt, no Agent Command Center, and an unchanged `config.toml`.
GitOrigin-RevId: 7e3110c72e5d6a08de7c5e804ad8e1a07c69c48f
## Why
The TUI can silently omit untracked files when Git quotes their names,
when their names have leading or trailing whitespace, or when they
disappear between listing and comparison.
## What changed
Read NUL-delimited paths from `git ls-files` without trimming them,
skip directory entries for untracked nested repositories, and use Git's
`/dev/null` handling across local and remote workspaces. Warn when an
untracked file can't be compared while still showing the available patches.
## Testing
Exercise a clean repository and an untracked file named ` café.txt`
beside a nested repository. Verify that a missing file produces a warning
while tracked and other untracked patches remain visible, including a patch
that Git emits alongside a line-ending warning.
GitOrigin-RevId: b92922ea49928381504dc11b71d599c60dbb7068
## 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
When a paragraph starts with inline code after a heading in a list
item, the renderer can append the code to the heading's line.
## What changed
Honor pending line breaks before rendering inline code using the same
line-start logic as links. Table cells keep their inline layout.
## Testing
Extend the rendering and transcript copy snapshots to cover a list
item with a heading followed by inline code. The copy cases cover
both the full item and a selection within the code span.
GitOrigin-RevId: bcc480cb9aa2cbf7ab0738f1ec3667677445987a
## 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
Use the default text style for single-line and wrapped values in the
hooks browser detail pane.
## Testing
Extend the wrapped hook command test to check that every detail span
uses the default style while still checking the full hyperlink destination.
GitOrigin-RevId: 77041a3bd95ad1f9fa71aa38857208c59ba44f9b
## Why
Terminal hosts need to know when Codex is waiting for a startup decision, including while a chat status record is active.
## What changed
Emit a separate `OSC 7501` blocked record while waiting for directory trust, startup hook review, or an update decision. Report trust and hook review as permission prompts and the update prompt as a question.
Clear the dialog record when the prompt closes or Codex suspends. Report it again if Codex resumes waiting for input. Dialog records can coexist with the chat status record.
## Testing
Extend the connected directory trust PTY test to check blocked and clear records for consent and hook review. Exercise Ctrl-Z in a PTY without a controlling terminal and verify that the pending trust record stays active until the prompt is answered.
GitOrigin-RevId: 9801e03b28a19b75f62a09e3e927de0dd59c5448
## 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
With animations disabled, the status row did not request redraws for
the standard elapsed timer. The displayed time could stay stale until
another event triggered a redraw.
## What changed
Schedule redraws for a static status row at the next whole second of
its displayed elapsed time. Skip clock redraws while the timer is paused
unless a phase-specific display clock is still running. Active visual
effects continue to request frames every 32 ms.
## Testing
Cover redraw scheduling with animations disabled and with static or
animated headers. Check tick timing across pause, resume, and phase
overrides, and snapshot the paused elapsed display.
GitOrigin-RevId: f3ccb534316d72f49c0d28818931bf8fd2a85f9b
## 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
## Why
Depth values in commands like `fd -Hd 1 . repro/scripts` can be
mistaken for search queries, obscuring the actual pattern and directory
in the exploration summary.
## What changed
Skip values for supported `fd` options, including depth options and
grouped short options that take a separate value. Preserve positional
arguments after `--` so patterns that start with a dash are recognized.
## Testing
Add parser cases for depth options, grouped flags, and dash-prefixed
patterns. Extend the exec history test to check that an `fd` command
with depth, type, and extension filters displays `Search . in scripts`.
GitOrigin-RevId: d6e2ab4f0cdb35b0715ef3484ff97856268c9437
## 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
Markdown file links can repeat the same path in the transcript. For
example, `[docs/guide.md](docs/guide.md)` renders as
`docs/guide.md (docs/guide.md)`.
## What changed
When a file link's visible label matches the displayed destination, use
the label as the clickable path and preserve its inline formatting. When
the label differs, keep the destination in parentheses so details such as
line anchors remain visible.
## Testing
Extend rendering snapshots for relative paths and line anchors, check
hyperlink ranges in narrow tables, and cover copying selections from
formatted file link labels.
GitOrigin-RevId: ade81a85e0dfe336d630388bd586634d0a80357f
## Why
MCP startup could show `Working` before a user turn began, and
reloading MCP servers could temporarily hide an unread `Done` status.
## What changed
Derive the terminal program status from user turn activity, active
goals, blocked states, and the stored turn result.
## Testing
Extend the status regression test to check that the TUI stays idle
while MCP starts, reports `Working` when a turn begins before MCP is
ready, and keeps `Done` visible throughout an MCP reload until the
result is acknowledged.
GitOrigin-RevId: f05fab26e54e610743f0f799ef30306835d5cbdd
## 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
The fuzzy matcher reports grapheme positions, but the terminal file picker
uses Unicode scalar offsets. When a path contains a joined emoji or a
combining mark, the picker can highlight the wrong characters.
## What changed
Let callers choose the unit for match indices. The terminal and CLI use
scalar offsets that cover every scalar in each matched grapheme. The
terminal's file picker and mention renderer now consume the same offsets.
The app server returns grapheme offsets for both one-shot and streaming
searches.
## Testing
Add regression coverage for basename and full-path matches with joined
emoji and combining marks, grapheme offsets in both app-server search
modes, and terminal highlights in file and mention results.
GitOrigin-RevId: 2da357a404396550333c785640d2c4121cb2ed3f
## 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