Repository navigation
Resolve fork ancestry lazily for descending history pages - #61840
Merged
copyberry[bot] merged 1 commit intoNov 16, 2026
Conversation
## Why Reading the newest turns or items in a fork previously resolved the entire rollout lineage, even when the page only needed recent segments. This caused unnecessary ancestor reads and could fail when an unused ancestor was missing. ## What changed Introduce an incremental `LineageWalk` and use it to resolve descending history pages only as far as needed for the cursor, requested rows, and next-page lookahead. Defer sibling rollout discovery until a parent is needed, while preserving newer turns' overrides when resuming in an ancestor. Keep full lineage resolution for ascending reads, update replay, item anchors, and inherited summary lookup. ## Testing Add regression coverage for pages with missing unused ancestors, continuation within a parent, turn overrides, inherited summaries, and exact page-boundary lookahead. Extend coverage for descending item pages using the selected rollout. GitOrigin-RevId: dad941f4f3c54a46121d4fa22b69e13f1830a385
copyberry
Bot
force-pushed
the
copyberry/codex-internal-to-codex-oss/dad941f4f3c54a46121d4fa22b69e13f1830a385
branch
from
November 16, 2026 16:37
9060deb to
bc4a254
Compare
Contributor
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
copyberry
Bot
deleted the
copyberry/codex-internal-to-codex-oss/dad941f4f3c54a46121d4fa22b69e13f1830a385
branch
November 16, 2026 16:37
Qubitium
added a commit
to ModelCloud/MultiDex
that referenced
this pull request
Nov 18, 2026
* Use thread-scoped model catalogs for model lookups (#61421)
## Why
Model lookups through the startup catalog can use the wrong provider's capabilities or instructions after a default provider switch or when a thread has its own catalog.
## What changed
- Resolve model metadata for sampling, prediction forks, and memory writes through the owning thread's catalog.
- Make the thread's models manager available to extensions before startup callbacks and use it for guardian sampler configuration.
- Import external sessions using the destination provider and originator's catalog, loading its offline cache only when no refreshed catalog is available.
## Testing
Add regression coverage for sampling after a default provider switch, parent-specific prediction fork capabilities, thread-scoped model lookups, and imported sessions retaining destination provider instructions and originator.
GitOrigin-RevId: c86081b9e55c5e2b42a7f082966485d7fb5139d4
* Add keyboard table selection to the transcript (#61422)
## What changed
- Add configurable `pager.mark_markdown`, bound to the leader followed by `v`, to mark the table cell under the selection caret.
- Use arrows or `hjkl` to extend a rectangular cell selection, `o` to swap corners, and `y` to copy. Press `v` to select text within the active cell without including neighboring cells, including across wrapped lines.
- Show table-specific footer hints and route the marking chord in both the main transcript and transcript overlays.
## Testing
Add coverage for cell rectangles, header-only selections, empty cells, wrapped text, Unicode and escaped pipes, Markdown copying, search cancellation, mouse takeover, and chord routing with remapped find and leader keys.
GitOrigin-RevId: 81ed9e52092bba3c7ef064e95043d2c070df0f4c
* Refill the transcript viewport when collapsing tool groups (#61424)
## Why
Collapsing a tool group while reading its expanded details can leave the scroll anchor beyond the new bottom limit, leaving available transcript space unfilled.
## What changed
Clamp the reading position to the bottom limit during collapse layout and persist it after the final viewport height is known. Keep activity focus and reading mode intact, including when copy confirmation changes the composer layout.
## Testing
Add regression coverage for collapsing a scrolled tool group, preserving the resulting view across renders, and rendering a collapsed group with clipboard confirmation.
GitOrigin-RevId: f48271720f7b400736bc02b08b6eafefdb60ac63
* Enable incremental tools by default for Amazon Bedrock (#61426)
## What changed
Enable `incremental_tools_legacy` by default so both Amazon Bedrock providers publish tool declarations through `additional_tools` input items. Users can still opt out by setting `incremental_tools_legacy = false`.
## Testing
Update the incremental tool scenarios to cover the default behavior and explicit opt-out for both Bedrock providers. Adjust the Bedrock multi-agent test to verify collaboration tools in `additional_tools` declarations.
GitOrigin-RevId: 7a54aed24039d178f9b7d7f5a3f49fe4d588ffa7
* Require OAuth CONNECT metadata for Portals TCP tunnels (#61428)
## What changed
Require `x-portals-auth-mode: oauth` in CONNECT metadata when the TCP tunnel listener connects to a known Portals gateway. Reject missing or non-OAuth metadata before reading credentials.
Remove local tunnel JWT type and version checks and treat tokens as opaque bearer credentials. Drop the unused `base64` dependency from `codex-tcp-tunnel`.
## Testing
Replace JWT validation tests with coverage that rejects missing OAuth metadata and accepts OAuth metadata with an opaque access token.
GitOrigin-RevId: 746816f0227280524c019dd90df203b182934751
* Refresh cloud plugin and skill catalogs during step preparation (#61429)
## Why
Installing a plugin without connector tools must still refresh a cached cloud skill catalog so its skills are visible to the next inference.
## What changed
- Rely on step preparation for cloud plugin and skill discovery, removing their turn-start callbacks and the `requires_mcp_runtime` lifecycle hook.
- Request an MCP runtime refresh after every completed plugin install, including skills-only installs.
## Testing
Add regression coverage for skills becoming visible immediately after a connector-free install. Update lifecycle tests to cover discovery after MCP reconciliation, prewarm skipping discovery, cancellation allowing subsequent preparation, and reuse of unchanged connections. Use deterministic DNS lookups in network proxy authorization tests.
GitOrigin-RevId: 76036bd29253fb8987e606c3c28411c689590fc4
* Instrument MCP OAuth credential store locks (#61430)
## What changed
- Record acquisition counts, wait durations, and hold durations for file and secrets store locks, tagged by store, lock mode, operation, and originating client. Acquisition metrics also report outcome and contention.
- Preserve the resolved credential store's originating client across storage operations and lock release, and exclude nonblocking probes from lock metrics.
- Add `record_global_duration` for standalone durations with the existing buffering limits and metrics opt-out behavior.
## Testing
Extend tests to verify lock metrics for shared and exclusive access, contention, timeouts, probe exclusion, and originating-client attribution. Add coverage for standalone duration buffering, validation, and opt-out behavior.
GitOrigin-RevId: 96de8bd195477d61bc8cd966c5fbf72ae7156273
* Close abandoned tool dispatch traces as aborted (#61434)
## Why
Interrupting a turn while a tool awaits approval can leave its rollout trace execution marked as running without an end timestamp.
## What changed
Record an `Aborted` end event when a tool dispatch trace is dropped before producing a result. Make completion and failure methods consume the trace handle so each dispatch is closed once.
## Testing
Add coverage for dropping a pending dispatch and for interrupting a turn with a pending command approval, verifying that replay reports an aborted execution with an end timestamp.
GitOrigin-RevId: 63cf68312fcbff8c6b85a01a7713cf4460c9d795
* Avoid starting dormant REPL servers for cleanup hooks (#61437)
## Why
Bundled `turn_ended` hooks can start an unused REPL server solely to clean it up, even though its deferred startup means there is no process to clean up.
## What changed
Allow bundled cleanup calls for `node_repl` and `cua_repl` to return an empty successful result when startup has never been requested. Limit this behavior to configured, unshared local stdio connections using the legacy MCP protocol. Other calls continue to wait for server startup.
## Testing
Add coverage for the connection eligibility checks and extend subagent hook tests to verify that bundled cleanup leaves unused REPL servers dormant while ordinary hooks can still start cached tools hidden from the model.
GitOrigin-RevId: 0a07772fccd670c53348ff7a702b4bee353e263c
* Use the provider default RPC in the TUI (#61438)
## What changed
- Save default provider selections through `modelProvider/default/set` instead of a generic configuration write.
- Use provider display names in save notices, falling back to the provider ID when the name is blank. Replace the restart hint with “New chats now use {name}.”
- Prompt users to update the connected app server when it does not support the default provider RPC.
## Testing
Update provider tests and snapshots to verify the dedicated RPC, display-name confirmation, and upgrade guidance. Check that only ambiguous write failures invalidate the model catalog.
GitOrigin-RevId: cd383a8b85b5d497e7707691cc0b994110716a09
* Add process-local launch directories for shared MCP servers (#61444)
## What changed
- Add hidden app-server options `--plugin-mcp-launch-cwd` and `--mcp-launch-cwd` for host-supplied local stdio server launch directories without writing them to shared configuration.
- Apply these directories when both `mcp_shared_repl_cwd` and `mcp_connection_sharing` are enabled. For configured servers, require a matching executable and preserve any explicit working directory.
- Attach thread-specific sandbox state to direct MCP tool calls for servers advertising support, stripping caller-supplied sandbox and launcher metadata first.
## Testing
Add regression tests for launch-directory feature toggling and executable matching, and for direct MCP calls using each thread's sandbox working directory despite forged caller metadata.
GitOrigin-RevId: d7f78ea92163ec0ee9311f68ef17e87a6694b13b
* Add thread ID inclusion filters to `thread/list` (#61446)
## Why
Clients reconciling saved thread IDs need to retrieve matching summaries within the current list filters, including threads beyond the first page of history.
## What changed
- Add `includedThreadIds` with up to 100 entries, applied before pagination alongside existing filters. Exclusions take precedence, and results retain the requested list sort.
- Treat omitted or null inclusions as unrestricted and an empty array as matching nothing. Reject invalid IDs and oversized arrays without truncating them.
- Use indexed metadata and primary-key lookups for local inclusion queries, without scanning rollouts for repairs. IDs absent from the index do not match.
- Update protocol schemas, generated bindings, and documentation, including guidance to verify server support before treating missing saved IDs as removals.
## Testing
Add coverage for saved IDs across project moves and archiving, pagination, exclusions, validation limits, and combinations with search, account, and relationship filters. Add a SQLite query-plan test for primary-key lookups across scopes.
GitOrigin-RevId: 90b02a12aee5716f872a9d5d6168d23cf86c6333
* Add explicit cloud catalog refresh before turn admission (#61449)
## Why
Hosts need to refresh cloud plugin and skill catalogs without starting a turn or waiting for step preparation.
## What changed
- Add `CodexThread::refresh_cloud_plugins()` and a turn-independent extension callback that bypass cached catalog reuse and failure cooldowns.
- Run catalog contributors concurrently while serializing publication with step snapshot capture. Invalidate MCP resource caches before explicit discovery and schedule MCP reconciliation afterward.
- Accept complete and partial catalogs, report discovery errors, and keep failed or cancelled refreshes retryable.
- Allow hosts to gate cloud plugin discovery through effective configuration.
## Testing
Add coverage for discovery before turn admission, catalog replacement and reuse, immediate retry after failure, concurrent contributors, and cancellation-safe publication and invalidation.
GitOrigin-RevId: 83e847fcab6562581af2c9e831b1d2a310f2b270
* Add optional tool output rendering for context window hints (#61452)
## What changed
Add the token-budget setting `context_window_as_tool_output`, defaulting to `false`. When enabled, render agent identity, context window IDs, and associated hints as an `agent.thread_hint` tool output. Use the same format for agent identity updates in forked threads.
Preserve this setting when applying model token-budget defaults without treating it as an explicit budget override.
## Testing
Update fork scenario snapshots to cover tool output rendering, including a child agent's window hint after its inherited parent context and a prediction fork above the compaction threshold.
GitOrigin-RevId: e1a7089935bd0aed44ffd15f0ae3ec41a2607218
* Refactor session mail recording and compaction metadata capture (#61461)
## What changed
- Consume the optional delivery handle directly when recording inter-agent messages.
- Capture compaction resume metadata before constructing the `CompactedItem`.
- Move the existing inter-agent message rollout and resume test into `mail_publication_tests.rs`, preserving its assertions for turn IDs, timestamps, persisted metadata, and restored history.
GitOrigin-RevId: 761a837922377d5a72266d775622211e43fa87d3
* Move JSON byte counting into `codex-utils-string` (#61465)
Export `serialized_json_bytes` from `codex-utils-string` and update core callers to use the shared helper. Preserve byte counting without retaining the serialized output.
GitOrigin-RevId: 9c75b05592d3171b9a0d54517f8f3a4281fde987
* Persist timestamped realtime frames before acknowledging completion (#61473)
## What changed
- Record voice transcripts as `frame` items with a `voice_transcript` channel for eligible threads, while retaining legacy transcript support and the existing app-server live and mixed timeline representation.
- Assign first-observed timestamps that never move backward, retain them through completion, and restore the clock floor from history and compaction checkpoints.
- Flush realtime records before completion notifications, including file and initial directory durability barriers for local rollouts.
- Generate a distinct default session ID for each new call, use the call ID when attaching to an existing call, and derive opening record IDs from session IDs.
- Add protocol types for turn-input acceptance and session-end input receipts, excluding those receipts from live notifications and mixed timelines. Update generated schemas and SDK types.
## Testing
Add coverage for frame serialization and required voice payloads, clock rollback and checkpoint restoration, durability barrier failures and retries, per-call session IDs, and persisted transcript availability immediately after completion.
GitOrigin-RevId: 3f6632b517d563861aee085b723475b8945c391c
* Add snapshot pagination for persisted realtime history (#61480)
## What changed
Add experimental `thread/realtime/list` reads independent of turn pagination or a live runtime. Support session, observation-time, and event-ID filters, with ordering by observation time or committed position.
Keep cursor pagination within a fixed snapshot and expose positions for catching up on events committed later. Return `unsupported`, `pending`, or `ready` coverage so clients can distinguish unavailable history from events awaiting indexing. Limit fork reads to the child's own realtime history.
## Testing
Add SQLite tests for snapshot stability, late-event catch-up, cursor validation, and coverage tracking. Extend app-server tests to cover filtering, exact event lookup, and fork isolation.
GitOrigin-RevId: 8158df53f10d948ede4911654aa8adbc7297b258
* Allow Ctrl+C to quit during Cloud session switches (#61481)
## What changed
Handle `Ctrl+C` while preparing a Cloud session and before adopting its thread. Clear buffered draft input first; when no draft or modal handles cancellation, request shutdown and abandon the pending switch.
Cancel abandoned Cloud thread-start requests so they cannot replace the active attachment or block subsequent worker commands. Skip queued starts whose caller has already gone away without disturbing existing recovery.
## Testing
Add regression tests for quitting before thread adoption with pending and completed operations, clearing buffered draft input before quitting, and unblocking the Cloud worker after abandoning regular and project thread starts.
GitOrigin-RevId: 11e8cab13f00f4910a382094d5d857faf72a45bc
* Keep archived threads read-only and support unarchiving in the TUI (#61486)
## What changed
- Show an archived-thread notice and freeze input while preserving the cached transcript, drafts, pending steers, and question answers.
- Allow `U` to unarchive and resume the displayed thread, and automatically resume it when another client unarchives it.
- Preserve archived state across reconnects and thread selection, and retain drafts when recovery fails or encounters a writer conflict.
- Dismiss transient composer searches and suppress automatic submissions when entering a read-only view.
## Testing
Add regression tests and notice snapshots covering archive recovery, external unarchiving, writer conflicts, reconnects, input preservation, and agent navigation.
GitOrigin-RevId: 695c19790b87df83e51095b400f605e37b309fc1
* Harden Git remote collection and limit remote URL metadata (#61488)
## Why
Parsing `git remote -v` can mistake partial clone filter text for remote entries. Large remote URLs can also push turn metadata beyond the Responses API's 8,096-character limit.
## What changed
- Read fetch URLs from NUL-delimited Git configuration, sanitize credentials, and let Git resolve `insteadOf` rewrites and empty URL resets without contacting remotes.
- Resolve ambiguous URLs with bounded concurrency and a shared deadline, and expose an observer that publishes verified URLs as they become available.
- When turn metadata exceeds the limit, fit complete remote URLs into the remaining budget while preserving other metadata. Prioritize `origin`, then shorter entries; omit URLs rather than truncate repository identities. Apply this to both client metadata and compatibility headers.
## Testing
Add regression coverage for partial clone filter injection, URL rewrites and resets, malformed and non-UTF-8 configuration, `GIT_CONFIG` overrides, progressive updates, and long remote URLs. Add metadata tests for the exact size boundary, oversized remote omission, ASCII serialization, and preservation of other fields.
GitOrigin-RevId: 522ffe291db6113ca9856fc98309609c8abe4ac0
* Preserve the current Cloud task until navigation is ready (#61490)
## Why
Opening another Cloud task can fail while loading its history. Keep the current chat, draft, and reply stream intact until the replacement is ready.
## What changed
- Prepare Cloud resumes with a scoped history handle and commit the attachment only after initial history hydration succeeds.
- Discard abandoned or failed preparations, reuse healthy existing attachments, and preserve buffered events through the handoff.
- Route Command Center task selections through the owning backend, including tasks found only in history search.
## Testing
Add regression coverage for failed history loading preserving the chat and draft, prepared stream handoffs and cancellation, backend routing, and history requests completing while a large reply stream remains unread.
GitOrigin-RevId: 67aab50bad4e9ce9216716da459fd5447f133ae1
* Describe context and permissions per environment behind a feature flag (#61494)
## Why
Selected environments can have different filesystem and network permissions, but context previously described only the primary environment's rules.
## What changed
- Add the disabled-by-default `per_environment_context` feature.
- Group filesystem and network access under each environment ID, including when only one environment is selected. Label shared network requirements separately.
- Scope permission instructions and incremental updates to each environment. Withdraw stale descriptions and use labeled thread defaults when no environment is ready.
- Track approved command prefixes separately so new approvals do not require repeating unchanged permission instructions.
## Testing
Extend rendering and permission snapshots for scoped context, removed scopes, thread defaults, and format transitions. Update the active-turn scenario to cover two environments with different permissions, changing only the second environment's workspace and permissions and restoring its defaults on the next turn.
GitOrigin-RevId: c948089c12da7b15eee378d8c5a23a233d24502b
* Add trusted request-country metadata to Responses requests (#61535)
## What changed
- Add `RequestCountry` for host-supplied country codes. Normalize two-letter ASCII codes to uppercase, omit the field by default, and serialize explicit unknown (`XX`) as `null` to prevent fallback to request provenance.
- Carry `request_country` through thread defaults and captured step settings into Codex backend HTTP and WebSocket requests. Allow live country updates without enabling `step_model_switching`, and preserve WebSocket continuation reuse when the country changes.
- Propagate the captured country to subagents, reviews, and compaction requests.
## Testing
Add coverage for country validation and serialization, thread and live-turn update lifetimes, prewarm settings capture, agent inheritance and reloads, compaction and reviews, WebSocket country changes, and HTTP fallback.
GitOrigin-RevId: 787cd1fa7ba5d465a4eb64a92f13c79e93d9bca7
* Unify model request hook lifecycles across sampling and compaction (#61562)
## What changed
- Pair `PreModelRequest` and `PostModelRequest` hooks per sampling or compaction attempt, with distinct lifecycle IDs and cancellation reporting.
- Add `thread_id` and `kind` to hook inputs, distinguishing `sampling`, `foreground_compaction`, and `background_compaction`. Include the provider's `response_id` in post-hook inputs when available.
- Wait for synchronous post-hooks before releasing terminal response events, accounting for usage, or installing compaction results. Allow streaming output and tool execution to proceed before the hook finishes, and cancel synchronous post-hooks when their owning request is interrupted.
- Preserve incomplete-response, budget-exceeded, and hook-denied outcomes across sampling retries and compaction model fallback.
## Testing
Add coverage for streaming and tool ordering, interrupted post-hooks, per-attempt metadata, and foreground and background compaction accounting and installation ordering.
GitOrigin-RevId: 3e808c5b3bf2d5a6a326d9f5be5bbd0359b2d16e
* Add response processing after completion and usage accounting (#61577)
## Why
Streaming can dispatch tools before a response finishes and its usage is accounted for. Allow callers to wait for completion and synchronous post-hooks so budget enforcement can block tools from the response that exhausts the budget.
## What changed
- Add `responses.process_mode = "after_complete_response"` to buffer response items and release them in order after completion, synchronous post-hooks, and usage accounting. Keep `streaming` as the default and deliver safety-buffering notifications immediately.
- Track whether response usage has already been charged to avoid duplicate accounting, including during compaction.
- Stop new tools across the agent tree when the rollout budget is exhausted. Coordinate steering with accounting and prevent buffered tool calls from dispatching after steering or cancellation.
- Bound buffered responses to 65,535 events and reject overflow.
## Testing
Add configuration coverage and extend integration tests for buffered output ordering, synchronous hooks, interrupted responses and resume, steering, invalid usage, and budget exhaustion preventing tool dispatch.
GitOrigin-RevId: bd06811cfd50cb701babe6353465c57dfed2a37a
* Recheck rollout budgets before starting tool work (#61578)
## Why
A rollout budget can be exhausted while a tool call waits for an execution slot, approval, or a lifecycle callback. Checking only when scheduling the call can allow new work to start after the budget is exhausted.
## What changed
- Recheck the budget after acquiring an execution slot, immediately before starting a handler, and immediately before handing an MCP request to the server.
- Report refused calls as aborted in tool outputs, lifecycle callbacks, and dispatch traces, while allowing already-running work to complete.
- Track handler start time separately from dispatch waiting and preserve terminal outcomes when cancellation arrives during completion callbacks.
## Testing
Add regression coverage for queued calls and calls paused in start callbacks when the budget is exhausted. Verify MCP requests are blocked before handoff and retain successful results after handoff, and assert budget-stop state during remote compaction.
GitOrigin-RevId: 573730391452256592d3512f15929a2fbdf03c57
* Support fractional rollout budgets and configurable context reminders (#61579)
## What changed
- Add a positive, finite `features.rollout_budget.limit_budget` allowance while retaining `limit_tokens` compatibility. Reject configurations that specify both.
- Preserve fractional balances in reminders and compare thresholds without rounding the balance down.
- Accumulate charges with compensated summation and allow spending exactly the allowance, including floating-point rounding tolerance for cases such as `0.1 + 0.2` against `0.3`.
- Add `reminder_at_context_start`, defaulting to `true`. Set it to `false` to suppress reminders at thread start and after compaction; combine it with an empty threshold list to disable budget reminders entirely.
## Testing
Extend configuration and rollout-budget tests to cover fractional allowances, legacy integer persistence, invalid limits, threshold-only reminders, and enforcement at decimal equality and after overspending.
GitOrigin-RevId: b8e7a2faa8d39e562bcae196364de419698bc67d
* Account for synchronous MCP post-hook costs in rollout budgets (#61580)
## What changed
Allow successful synchronous `PostModelRequest` MCP hooks to return `extra_codex_rollout_budget_units` in `structuredContent`. Add these charges to rollout spending while preserving provider usage separately, including completed responses without token usage and incomplete responses with reported usage.
Validate prices as finite and nonnegative. Preserve valid sibling charges when another hook reports an invalid price, and surface accounting failures without retrying inference. Carry hook charges and overflow information through host accounting and enforce local budget limits.
## Testing
Extend coverage for hook-driven budget exhaustion, failed hooks, overflow, interrupted responses, and foreground and background compaction accounting.
GitOrigin-RevId: dc54ba53478d82848bcafb55ecef88215019d09f
* Record neutral interruption markers for rollout budget stops (#61581)
## Why
Turns stopped by an exhausted rollout budget need a history marker without attributing the interruption to the user.
## What changed
- Record and flush a `<turn_aborted>` marker before the terminal event for `SessionBudgetExceeded`, respecting the interrupt-message setting.
- Use neutral guidance in a `developer` message for automatic budget stops.
- Centralize tool-start budget checks across parallel dispatch, tool handlers, and MCP handoff, retaining the check after tool-start observers finish waiting.
- Share interruption classification and history recording across turn and compaction paths.
## Testing
Extend the rollout-budget integration test to assert that both the budget-crossing turn and a later denied turn persist `developer` interruption markers.
GitOrigin-RevId: 2a49ac9824a4e95e4799f2d0f638f8c46889e8e8
* Gate new rollout work on shared budget exhaustion (#61582)
## Why
A budget can be exhausted while another thread waits to start work. New requests, tools, and automatic turns must observe that stop without discarding an already-consumed response whose cost exhausted the budget.
## What changed
- Share a work gate across the rollout tree while preserving native and host accounting ownership.
- Recheck the budget before HTTP and WebSocket requests, hook execution, tool dispatch, and compaction. Prevent automatic wakeups and late input from restarting stopped work, leaving pending input queued.
- Record response costs without rejecting the consumed response solely because its bill exhausts the budget, and stop new work when enforced accounting overflows.
- Expose a thread-registration receipt that remains committed after unload.
## Testing
Extend rollout-budget coverage to verify that accepted response text remains in history after exhaustion and that waiting tools observe the shared stop while completed tools retain their results.
GitOrigin-RevId: e583d657c6f29e374d374cdb014bf23fd6c28614
* Refactor rollout budget checks and turn completion state (#61583)
## What changed
- Centralize generation admission checks before request contributors run for HTTP and non-warmup WebSocket requests.
- Route pending input and inline compaction through dedicated budget checks, and centralize post-compaction budget handling.
- Preserve whether any checkpoint was installed when remote compaction combines a background candidate with foreground compaction.
- Track accepted final answers separately from trailing commentary and encapsulate the response state shared by stop and after-agent hooks.
## Testing
Update the plan-mode contributor test to verify that contributed commentary is tracked separately from final answers, and adapt stream-event assertions to the phase-aware assistant text representation.
GitOrigin-RevId: 43b663e92bfd24ec7e5a0778b711938f16a7fea4
* Add request IDs and attempt numbers to model request hooks (#61587)
## Why
Model request hooks need to correlate attempts belonging to the same generation across retries and model fallback.
## What changed
Add `request_id` and one-based `attempt_number` fields to `PreModelRequest` and `PostModelRequest` inputs and their generated schema. Keep the request ID stable across retries and increment the attempt number for each call to open a response stream.
## Testing
Extend hook tests to verify matching request IDs and increasing attempt numbers across retries. Extend the background compaction scenario to verify that its pre/post hooks share an ID distinct from the ordinary sampling request.
GitOrigin-RevId: 2d85ad6fd630505a89a712cebab6ca0f731610c9
* Scope TUI history item lookups to their owning turns (#61595)
## Why
Item IDs are unique only within a turn. Reusing an ID across turns can misplace completion boundaries or hide unrelated items when loading older history.
## What changed
Carry turn IDs with paginated history items and key completion grouping and hidden review prompt lookups by both turn ID and item ID. Skip completion boundaries that would move backward through the page.
## Testing
Extend regression coverage to reuse item IDs across turns, checking completion ordering, visibility of unrelated tool items, and pagination without overlapping completion footers.
GitOrigin-RevId: 6cc8e16a1731d5aad4cbfb1c27e51c4665b0a655
* Keep agent overview refresh state scoped to each backend (#61596)
## Why
Switching backends while an overview refresh is pending can lose queued pagination or let a late page consume another backend's refill budget.
## What changed
- Track queued refreshes, “Show more” requests, refill counts, and refresh failures per backend.
- Preserve pending work across backend switches and use registered live request handles to refresh the owning backend.
- Cancel stale reads for the affected backend after mutations, event lag, or disconnects, and hide “Show more” when its backend is disconnected.
## Testing
Add regression coverage for pagination across focus changes, backend-specific refills, pin completion, stale reads after event lag, and connection registration during reconnect.
GitOrigin-RevId: 3429b2b3ac93156b4dc4234ad042431d26c84525
* Report Cloud stream recovery failures and cancel abandoned reads (#61599)
## Why
Cloud stream failures previously used a generic reopen message even when the conversation was missing, access was denied, or sign-in had changed. Abandoned turn and item list requests could also keep the native worker occupied.
## What changed
- Report specific disconnect reasons for missing conversations, lost access, and changed or expired sign-in, including failures during idle reconnection.
- Report exhausted reconnect attempts and other nontransient recovery failures with dedicated messages.
- Cancel in-flight `ThreadTurnsList` and `ThreadItemsList` requests when their callers drop, matching `ThreadList` behavior.
## Testing
Add regression coverage for abandoned history reads, changed sign-in during accepted idle recovery, and access-denied stream errors.
GitOrigin-RevId: 29923b46c2d377f2247d699757553777a31d08ca
* Enable automatic titles for Cloud conversations (#61600)
## Why
Cloud conversations previously skipped TUI title generation, leaving them without automatically saved names.
## What changed
- Generate structured titles using the selected Cloud account and its backend routing, without agent tools or a temporary conversation.
- Read and save names outside the conversation command queue without replacing the active attachment. Preserve an existing name if it no longer matches the expected value.
- Fall back to the first-message title when generation is unavailable, and allow up to three seconds for pending saves during shutdown.
- Report a retryable error when a manual rename encounters an automatic save in progress, keeping the UI responsive.
## Testing
Add coverage for selected-account title generation, saved-name reads without attachment, first-message fallback persistence, and manual rename retries after automatic saves.
GitOrigin-RevId: 48030cc0b75e790a2004af018f54e5751665b760
* Return to the command center while archiving a task (#61619)
## Why
Archiving the current task waits for the server response before returning to the command center, blocking navigation while the request is pending.
## What changed
- Run the archive request in the background after side chat and voice cleanup, hiding the task while it is pending.
- Preserve drafts and approvals until archiving succeeds. On failure, show an error and make the task visible again.
- Keep archive completions across reconnects and route dynamic tool replies through their original reply handles.
- Show `Archiving…` during side chat cleanup. On exit, wait up to five seconds for pending archives and report failures or unconfirmed outcomes.
## Testing
Add coverage for navigation before the archive response, success and failure handling across event channel replacement, preserved drafts, side chat cleanup failures, and exit warnings.
GitOrigin-RevId: 7b6e35cb11159f5be1d0b9fb2082dbd8c7826a94
* Clarify window ID discovery in history tool guidance (#61622)
## What changed
Direct agents to use `history.list_windows` to find valid window IDs for the agent they want to inspect. Replace the namespace description's ordering and unknown-window guidance, and update the bundled tool contract snapshots to match.
GitOrigin-RevId: 37050cc3b2311f1d8f3b5676dca8d1261423c4c5
* Fix config reads with relative working directories (#61663)
Build `config/read` responses from the latest loaded configuration's layer
stack so requests with a relative `cwd`, such as `.`, succeed and reflect
external configuration edits. Reuse that configuration for feature overrides
and preserve precedence for layer read and decoding errors over full-config
validation errors.
Add a regression test that reads with `cwd: "."` before and after an external
model configuration edit and checks that both values are returned.
GitOrigin-RevId: 82eb835f2eac4e53414b01fc9286c2aac71babf2
* Defer plugin manifest loading until marketplace entries are selected (#61686)
## Why
Marketplace listings read plugin manifests for entries later discarded by policy, product visibility, or duplicate selection across project scopes. This causes unnecessary reads and can emit parse warnings for plugins that never appear in the listing.
## What changed
Separate marketplace entry validation from plugin manifest loading. Apply marketplace policy, visibility, and path and plugin ID deduplication before loading metadata, preserving first-source and first-scope precedence.
## Testing
Add a regression test covering repeated marketplace paths and shadowed plugin IDs across scopes. Verify that the selected malformed manifest is read once, the discarded manifest is never read, and the visible plugin IDs and local versions are preserved.
GitOrigin-RevId: 00b1d50593fb6546aafdc2089e6fccec1b4e5f42
* Add TUI review ownership and risk guidance (#61688)
## What changed
- Add an `OWNERS` file for `codex-rs/tui` with `tempest::evaluate-only`.
- Add `TEMPEST_REVIEW` guidance requiring inspection of `codex-rs/tui/styles.md`, identifying local rendering and copy fixes with focused snapshots as eligible for automatic approval, and requesting human approval for changes to input actions or app-server-dependent thread and turn state.
GitOrigin-RevId: 6440f1a5a96fa4979292171d0c88c0b5d4d464bd
* Keep pasted text inline in TUI goals (#61690)
## Why
Pasted goal text was stored in separate files, leaving file references in the goal editor instead of the pasted content.
## What changed
Expand pending pastes into the goal objective before processing image attachments and checking the objective length. Short goals now retain their text inline; oversized expanded objectives still use the managed `goal-objective.md` file.
## Testing
Update goal tests to cover oversized Unicode pastes, inline text without new attachment files, and pastes combined with image attachments. Add a snapshot showing `Use hello` when reopening a pasted goal in the editor.
GitOrigin-RevId: afd8e8de1ca12fe81bdfd526a0ad9e92a43addc2
* Fix status detail truncation for wide Unicode characters (#61692)
## Why
When status details exceed the line limit, character-based truncation can make the final line overflow its available terminal width.
## What changed
Use display-width-aware truncation on the entire final line, including its indentation and trailing ellipsis.
## Testing
Extend the status details test with wide Unicode characters, checking that every line fits within 10 columns and snapshotting the truncated output.
GitOrigin-RevId: 89c6cfb7cf36cdf0d63b6f732c59acd96128f9fd
* Discard unsaved experimental feature edits on cancel (#61694)
## What changed
Close the experimental features popup without saving pending edits when the user presses `Esc`, `Ctrl+C`, or a remapped cancel key. Keep saving on the accept action (`Enter` by default), and update the footer from `esc save/close` to `esc cancel`.
## Testing
Update tests to assert that cancellation discards toggles without emitting save events, including after a failed write and with a remapped cancel key. Refresh popup snapshots for the new hint.
GitOrigin-RevId: d7640edaeca1db371a7087312179a001d7528b9a
* Restore the terminal's original alternate-scroll mode (#61697)
## Why
Releasing TUI input modes previously disabled alternate scrolling unconditionally, overriding terminals where it was initially enabled.
## What changed
- Query alternate-scroll mode (`1007`) during the Unix startup probe and filter its replies from replayed input.
- Restore the recorded mode during editor handoff and exit, defaulting to disabled when the initial state is unknown.
- Retry scroll-mode restoration after a failed cleanup write.
## Testing
Extend startup probe tests to parse enabled and disabled reports. Add coverage for preserving both initial states across handoff and exit, and retrying failed restoration.
GitOrigin-RevId: 786a44c04da6e2c9cb9af73c096d8df92ded88e9
* Refactor exec to use the shared app-server client (#61706)
## What changed
- Use `AppServerClient` throughout exec and extract turn completion into `finish_turn`, including handling for server and thread-stream disconnections.
- Move remote address parsing and auth-token resolution into `codex-app-server-client`, with re-exports from the TUI.
- Allow human-readable exec output to be initialized without a local `Config`.
## Testing
Move remote address and auth-token tests into `codex-app-server-client`, retaining coverage for WebSocket and Unix socket addresses, invalid addresses, and missing, empty, or whitespace-padded tokens.
GitOrigin-RevId: 465b17a1c03392a7d4e7700d83ce67c2cf5ef021
* Support remote app servers in `codex exec` (#61707)
## What changed
Allow `codex exec --remote <ADDR>` to run a noninteractive turn using an existing app server's configuration and credentials. Support starting a new thread or resuming one by UUID, with human-readable or JSON output and optional bearer-token authentication through `--remote-auth-token-env`.
Accept remote options before or after `exec`, and reject conflicting endpoints. Reject unsupported agent configuration overrides and active threads, and report an error if the server disconnects before the turn completes.
## Testing
Extend CLI integration coverage for remote execution and resume using server authentication, JSON completion events, human-readable thread IDs, and conflicting endpoints. Add a snapshot for `--remote` help text.
GitOrigin-RevId: d4c3b16fb80eb6e8c523aff92110eaa878cbd3ee
* Avoid legacy transcript reads in the agents overview (#61709)
## Why
Listing even one turn of a legacy thread replays its entire rollout. Overview refreshes should avoid that work just to populate previews.
## What changed
- Fetch saved prompt and reply previews only for threads with paginated history.
- Update legacy prompt previews from user-message notifications and preserve them across refreshes and reverts.
- Retain the latest observed reply preview when a thread closes.
## Testing
Extend overview tests to reject legacy turn-list requests, verify paginated previews, preserve live prompts across stale refreshes and reverts, and retain reply previews after thread closure.
GitOrigin-RevId: 85130adda155c5ea93c5a5c2b3f89a945170ba51
* Enable slash-command completion for unavailable threads (#61710)
## Why
Restricted input dismissed the slash-command popup when a thread was unavailable, preventing users from selecting recovery commands from partial input.
## What changed
Keep the command popup available while editing an unavailable thread's draft. Allow navigation, Tab completion, and submission of eligible recovery and local commands, including with custom submit keys. For example, typing `/sub` and pressing Enter selects `/subagents`.
Continue to reject commands unavailable in this state and invalid command arguments. Preserve Vim escape and search behavior without reopening the popup during search.
## Testing
Add regression tests and a popup snapshot covering highlighted recovery completion, blocked commands, custom submit keys, and Vim escape and search behavior.
GitOrigin-RevId: 38021db8cdcd9f7ec7c62cfa0efd8819bf8057da
* Open Windows desktop sessions through the registered URL handler (#61711)
## What changed
Launch desktop session URLs with PowerShell's `Start-Process` instead of resolving and starting the packaged executable directly. Restrict the installed `OpenAI.Codex` package check to the two supported publisher IDs and select the first match.
GitOrigin-RevId: 350029a2101ff048de52fa9f9444e4b5dbdcc12e
* Restore raw mode after returning from external editors (#61713)
## Why
An editor's suspend/resume cycle can change terminal settings while crossterm still considers raw mode enabled, preventing Codex from restoring raw mode on return.
## What changed
On Unix, clear crossterm's raw-mode cache before reapplying TUI terminal modes after an external program exits.
## Testing
Extend the external-editor PTY test to simulate an editor restoring canonical mode with `stty sane` and verify that canonical input and echo are disabled after returning to Codex.
GitOrigin-RevId: 4ae151deaf073bddf5a1c7fdfb5a1b5f4a480375
* Use `clip.exe` for single-line ASCII clipboard copies in WSL (#61724)
## Why
Single-line ASCII copies can use the lightweight Windows clipboard writer without starting PowerShell.
## What changed
- Try `clip.exe` for printable ASCII text and tabs, falling back to PowerShell if it is unavailable or fails. Bound discovery and execution by short deadlines.
- Keep PowerShell for Unicode, multiline text, and other control characters. Pad even-length ASCII input with a trailing NUL to prevent `clip.exe` from interpreting it as UTF-16.
- Preserve precedence and command compatibility for installed Linux `powershell.exe` adapters, and defer Windows PowerShell discovery until needed.
## Testing
Extend WSL clipboard tests to cover input eligibility and padding, adapter precedence, and expired deadlines.
GitOrigin-RevId: 69b66ec1243452d0a4df119563321f38d177bea9
* Fix Unicode grapheme highlighting in history search (#61725)
## Why
Ctrl+R history search highlights need to cover whole grapheme clusters so that matches on combining marks highlight the visible character.
## What changed
- Map case-insensitive matches to grapheme boundaries and deduplicate identical highlight ranges.
- Segment the separately rendered `!` bash prompt independently from the textarea so a prompt-only match does not highlight the command body.
## Testing
Extend match-range tests for repeated combining marks and rendering coverage for combining-mark matches and prompt-only matches.
GitOrigin-RevId: d8f5c5ebb06b1130153b3cfbc8631342a57cfa1c
* Preserve graphemes in mention search match highlighting (#61726)
## Why
Splitting fuzzy matches into individual Unicode scalars can break multi-codepoint emoji when mention results are truncated.
## What changed
Render highlighted names and parent paths as whole grapheme clusters, using scalar match indices for names and grapheme match indices for paths. Bold the entire grapheme when any part matches.
## Testing
Add a regression test covering truncated plugin names and file paths containing `👩💻`, checking both rendered text and bold match styling.
GitOrigin-RevId: 516d6668a9a22f79483adb0c576ed190b4f4a784
* Optimize default and attached thread listings with targeted indexes (#61727)
## Why
Default thread listings should stay in timestamp order without scanning subagent threads. Attached-thread listings should use both parent and archive filters even without planner statistics.
## What changed
- Add partial indexes for visible interactive threads sorted by creation, update, or recency timestamps.
- Use literal source predicates for default interactive listings so SQLite can select the partial indexes.
- Extend the attached-parent index to include archive status.
## Testing
Add a query-plan test verifying that the default sidebar listing uses the interactive update-time index. Extend app-server coverage to include `chatgpt` custom-source threads in default interactive listings.
GitOrigin-RevId: 5844622b7af629cad71e15ec95a8960739d6d447
* Fix thread listing migration numbering and test setup (#61730)
## Why
The thread listing index migration shares version `0063` with the session model IDs migration, and the sidebar query-plan test omits the required `included_thread_ids` field.
## What changed
- Renumber the thread listing index migration to `0064`.
- Set `included_thread_ids` to `None` in the sidebar query-plan test.
GitOrigin-RevId: 2c4c4ed52dd412fbf379ddbd2ed77324fba3b1ca
* Keep bidirectional TUI headers stable during shimmer (#61731)
## Why
Per-grapheme color updates can break native terminal bidirectional rendering in thinking and reasoning headers.
## What changed
Render text containing strong right-to-left characters or Arabic numbers as a single, static dimmed span in both shimmer implementations. Preserve logical text order and use one-second clock updates for these status headers when progress animation is disabled.
## Testing
Add snapshot coverage for Hebrew, Arabic, mixed-direction text, and Arabic numbers, checking that headers remain unchanged during the shimmer sweep. Add scheduling tests for static headers and active progress animation.
GitOrigin-RevId: 911abc50f00db597ae4dcfca9941e9f63547c2f9
* Preserve agent message phases in the cloud backend (#61737)
## Why
Cloud agent messages lost their phase when converted to app-server thread items, leaving consumers unable to distinguish commentary, final answers, and partial answers.
## What changed
Decode the optional phase from cloud agent messages, expose it through `ItemSummary::AgentMessage`, and map it to the corresponding app-server `MessagePhase`. Leave the phase unset for missing or unrecognized values.
## Testing
Extend item lifecycle and completed-reply tests to verify that a final-answer phase survives decoding and conversion. Retain history coverage for messages without a phase.
GitOrigin-RevId: b7661386758685e0f3c07b53935ff7fd7ba35f7d
* Reuse matching thread inventories for lightweight MCP status pages (#61738)
## What changed
Reuse connected thread tool inventories for paginated `ToolsAndAuthOnly` status requests when registrations, client settings, permissions, environments, and authentication match. Restrict reuse to connections with fixed credentials; discover remaining servers separately and preserve enterprise-managed servers' admitted thread connections.
Bind status configuration to the same environment and permission inputs used by the thread runtime, and limit authentication-failure inspection to the requested servers.
## Testing
Extend status tests to cover fixed-credential reuse, fresh discovery for stored OAuth authority, full resource discovery, and inventories for dormant threads without starting their runtime connections. Verify that paginated lightweight results keep same-named servers in different environments separate.
GitOrigin-RevId: eaca6365fb2a739eaad76eefdc62ec9f796b1024
* Mark cloud threads with a cloud icon in the TUI (#61742)
## What changed
Prefix cloud thread labels with `☁︎` in resume and fork pickers, the agents overview and task details, task mention suggestions, side chat tabs and chooser, status lines, and terminal titles. Keep the marker separate from thread names, search text, and identity, and account for its width when truncating labels.
Track cloud backend identity independently of live connections so thread labels retain their marker after a disconnect.
## Testing
Extend rendering tests and snapshots to cover cloud and local labels, narrow layouts, side chat tabs and chooser, and terminal title fallbacks and truncation.
GitOrigin-RevId: ea8189ebcc5e35d2d2ef95d6a4a87ca23b5e3b8f
* Clarify shell-specific login guidance for `exec_command` (#61744)
## Why
The `login` description claimed a fixed default and described Unix shell flags for every shell. In PowerShell, disabling login startup skips profiles, which can make profile-defined commands unavailable.
## What changed
Describe omitted `login` values as inheriting the setting. When a turn environment reports PowerShell, explain that `login: false` skips profiles and advise keeping profiles enabled for commands that depend on them, including unattended commands.
## Testing
Add coverage for shell-specific descriptions, remote environment readiness, and exact normalization of PowerShell wording in portable tool snapshots. Update prompt-prefix compatibility checks and affected snapshots.
GitOrigin-RevId: f6cb29c6c32921241cbd1be0c31f985c5ae274f9
* Refactor history and notes tool registration (#61747)
## What changed
Split tool construction into `history_tools` and `notes_tools`, with
`history_notes_tools` combining both. Each builder accepts an optional backend
and reads its catalog messages directly from the step's `ExtensionData`.
Extract a shared contributor registration helper and simplify the HTTP-backed
extension to use these helpers. Update the bundled tool contract snapshot test
to use the revised builder signature.
GitOrigin-RevId: c9804b457ffc5d3634d7e58973a9f0f5028ca6e9
* Fix the missing label style in the mention truncation test (#61762)
Initialize the file result with `ThreadLabelStyle::Plain` in
`fuzzy_matches_preserve_graphemes_when_truncated` so the test supplies the
required `SearchResult` field.
GitOrigin-RevId: c1dbfc3b4d094511b2f480020d8365813f2d89d5
* Simplify history and notes tool registration (#61764)
Generate `history_notes_tools` directly from `register_tools!`, removing the
separate per-namespace registration helpers and building a single executor
vector. Preserve tool order, catalog overrides, and empty results when no
backend is available.
GitOrigin-RevId: f13a056af4e26b7510b2cc138c69c935be5a5c2d
* Remove numeric positions from project responses (#61771)
## What changed
Remove `position` from app-server `Project` responses, the thread-store project model, and generated schemas and SDK types.
Document that clients should use the returned project order and that `beforeProjectId` places a moved project before another project, or appends it when omitted or null.
GitOrigin-RevId: 5de481e13f524c03260b7fed5c74874f051d6f30
* Centralize permission profile compatibility helpers in protocol (#61784)
## What changed
Move legacy sandbox policy conversion into `codex-protocol` and add a shared helper for resolving compatibility writable roots. Re-export the policy helper from `codex-sandboxing` and use the writable-roots helper in both Windows sandbox backends, preserving the existing workspace-write fallback.
## Testing
Add a regression test confirming that an output-only permission profile retains the fallback's output and working-directory writable roots, including protected `.git` and `.codex` subpaths.
GitOrigin-RevId: a40474eb74544f34f7eea8135a7eb1b57706dbc2
* Strengthen workspace-write configuration tests (#61785)
## What changed
- Exercise an explicit `PermissionProfile` in the additional writable roots test on non-Windows platforms, while preserving Windows coverage of the default read-only fallback.
- Assert that enabling memories preserves write access to the working directory on non-Windows platforms.
GitOrigin-RevId: ae25690a56825b47ca38e42fece1fdd7a42b48a4
* Add lifecycle-managed Guardian housekeeping (#61795)
## What changed
- Add an `install` entry point that registers thread and turn lifecycle hooks for Guardian housekeeping. Coalesce user-message and turn-end wakes into one worker per eligible root thread, flushing history before routing durable evidence in order.
- Run the housekeeper in an isolated, ephemeral model thread with no tools. Cancel and join its tracked tasks on root shutdown, waiting for accepted evidence appends to finish.
- Give each routing batch a 90-second deadline, make channel listing and updates cancellable, and redact model response content from JSON parsing errors.
## Testing
Extend housekeeping tests to cover stalled channel creation, redacted model errors, and shutdown waiting for an accepted evidence append without leaving a persisted housekeeper rollout.
GitOrigin-RevId: 519b539c0613c964bac7b18eb84e684f5e105640
* Wire Guardian V3 housekeeping into the app server (#61797)
## What changed
- Install Guardian V3 with a local message-board host when the server enables `features.guardianv3.enabled`, independently of thread overrides.
- Clear inherited user, thread, and project instructions from Guardian V3 private threads and skip repository instruction discovery.
## Testing
Add integration coverage for routing the first live message while the actor is still sampling, for both new and resumed threads. Verify that resumed history is skipped, `AGENTS.md` reaches only the actor, and thread overrides cannot enable or disable server-level housekeeping.
GitOrigin-RevId: 3f3ae1be404c9e17b73eea12c95f5a95c96052cf
* Add a dedicated Guardian v3 housekeeper inference client (#61798)
## What changed
Add a tool-free Responses sampler with persistent conversation history and whole-batch eviction to stay within the model's input budget. Parse completed routing replies and retain their output through an explicit commit step.
Add WebSocket connection reuse, HTTP fallback, bounded retries, authentication recovery, account-change checks, and cancellation of unfinished responses.
Register the new modules without connecting them to the existing housekeeper routing flow yet.
GitOrigin-RevId: 2a0ff557a521763ab984249ec6594ae7ce09d59e
* Route Guardian housekeeping through its dedicated sampler (#61799)
## What changed
Use `HousekeeperSampler` for evidence routing instead of starting a separate review-session thread. The housekeeper now owns a tool-free model conversation, retains completed routing batches, and evicts whole batches under context-window pressure.
Commit sampled history only after all board writes succeed and the evidence cursor advances. Stop the worker after a routing error or an interrupted routing future. Cancel routing when the account changes while allowing accepted appends to finish before shutdown.
## Testing
Extend housekeeping integration coverage for retained history, whole-batch eviction, transient retries, retry exhaustion with `Retry-After`, HTTP fallback, credential renewal, command-token rotation, and shutdown waiting for accepted evidence appends.
GitOrigin-RevId: 316ab1b90529e2a5874e617855d38c41f232872a
* Clarify managed human command checkpoint stability (#61800)
Document managed `prompt-user` command checkpoints as stable in the interactive
Codex CLI, while keeping app-server integration marked experimental. Clarify
that each matching command requires a fresh human decision, even with automatic
review enabled, and that session or persistent approvals cannot satisfy it.
GitOrigin-RevId: 98c36d00294bd97ab937f32940dfb24310ecbc32
* Preserve active turn approvals when an earlier turn finishes late (#61801)
## Why
A turn's terminal event can arrive after the next turn has started, cancelling the newer turn's pending approval requests and incorrectly changing the thread's active status.
## What changed
Track the latest started turn in the app server. Only let completion or abort events for that turn cancel pending server requests and update thread watch status, preserving the existing behavior when no started turn is recorded.
## Testing
Add a regression test that delays one turn's completion until the next turn requests command approval, then verifies that the thread remains waiting on approval and the approval can still be accepted to execute the command.
GitOrigin-RevId: 521f4fb74728b3e70572839b2e73d2d2b2735f35
* Isolate app-server turn metadata by turn ID (#61817)
## Why
A turn can complete after the next turn has started. Sharing one turn summary lets late completion events consume the next turn's metadata and clear its command tracking.
## What changed
Track turn summaries and command start times by turn ID so errors, timestamps, final agent messages, and command lifecycle notifications stay associated with the correct turn. Read and remove only the completing turn's state, and clear tracked state when listeners are replaced or removed.
Initialize summaries for inline reviews that can finish before their delegate emits `TurnStarted`.
## Testing
Extend regression coverage to check that overlapping turns retain their own errors, completed turns include start timestamps, and the next turn's approved command emits one start and one completion notification despite a late completion from the previous turn.
GitOrigin-RevId: 91f022d885c67c7d8982091c72325f1d701569a6
* Preserve aggregate turn diffs across steering (#61820)
## Why
A steer can restart sampling within the same turn. Recreating the diff tracker loses earlier edits, and changing the working directory can change the meaning of relative diff paths.
## What changed
Keep the diff tracker for the lifetime of the turn and retain each environment's first display root. Refresh cached diff headers when new environments are added. Emit the final aggregate `TurnDiff` before `TurnComplete` instead of at sampling completion.
## Testing
Extend regression coverage for steering during the final flush, with and without additional patches and with a changed working directory. Check final diff ordering across continued sampling and header updates when adding an environment.
GitOrigin-RevId: fbd1ebef072d8486a324190c9125fc1446510802
* Avoid unnecessary rollout item copies during child thread creation (#61833)
## Why
Creating a child thread with inherited model context collected owned rollout items just to count them, then collected them again during persistence even when telemetry did not need them.
## What changed
Count persisted inherited items without collecting an owned vector. Only collect filtered items during persistence when telemetry is enabled, and reuse those items for metadata updates on normal appends.
## Testing
Extend the inherited-context test to verify that paginated history excludes legacy-only events, preserves the child history boundary and record ordinals, and replays the expected records after reopening from disk.
GitOrigin-RevId: 04dfb7b5b086c66f4dc760027c4faa704cab0df1
* Avoid redundant store reads for loaded thread metadata (#61837)
## Why
Metadata-only `thread/read` requests for loaded threads reread the store to attach a title after already loading persisted metadata.
## What changed
Reuse persisted metadata and overlay live settings, returning metadata-only responses without another store read. Keep history loading conditional on `includeTurns` and centralize stored-title trimming and legacy preview fallback handling.
## Testing
Extend the in-memory store test to verify that a loaded thread without a rollout path returns its trimmed stored title with exactly one metadata read, while requests with turns still return stored history.
GitOrigin-RevId: 74f20914afb44901d7586eb8e944afdae2640c31
* Resolve fork ancestry lazily for descending history pages (#61840)
## Why
Reading the newest turns or items in a fork previously resolved the entire rollout lineage, even when the page only needed recent segments. This caused unnecessary ancestor reads and could fail when an unused ancestor was missing.
## What changed
Introduce an incremental `LineageWalk` and use it to resolve descending history pages only as far as needed for the cursor, requested rows, and next-page lookahead. Defer sibling rollout discovery until a parent is needed, while preserving newer turns' overrides when resuming in an ancestor.
Keep full lineage resolution for ascending reads, update replay, item anchors, and inherited summary lookup.
## Testing
Add regression coverage for pages with missing unused ancestors, continuation within a parent, turn overrides, inherited summaries, and exact page-boundary lookahead. Extend coverage for descending item pages using the selected rollout.
GitOrigin-RevId: dad941f4f3c54a46121d4fa22b69e13f1830a385
* Close late command approval items when turns are interrupted (#61841)
## Why
A background command can request approval after its originating turn has completed. Interrupting a later turn cancels the pending approval but can leave the command item marked as in progress.
## What changed
Complete these late command items with `Declined` status when their approval is canceled by a turn transition. Route completion through the thread listener so `item/completed` reaches the thread's current subscribers, preserving the original turn ID and command start timestamp.
## Testing
Add regression coverage for interrupting a turn with a pending approval from a completed turn, and for delivering late command completion to a replacement subscriber.
GitOrigin-RevId: 8c62fa3302fd3754b84e6fb87b3117f678f55164
* Defer code-mode tool catalog construction until first access (#61845)
## Why
Each cell eagerly built `tools` and `ALL_TOOLS`, even when its code never accessed them.
## What changed
- Initialize each catalog global lazily on its first read, preserving writable values and mutations within each cell.
- Normalize tool metadata at the service boundary and share it through an `Arc`-backed catalog instead of repeatedly converting it between runtime layers.
- Construct catalog properties without invoking inherited setters.
## Testing
Add regression tests for cell-local catalog mutations, fresh catalogs across cells, and catalog construction with inherited setters on `Object.prototype` and `Array.prototype`.
GitOrigin-RevId: 04695c24ff33d3b3a4335558e9c754844f04e9f0
* Reuse code-mode tool catalogs across executions (#61846)
## Why
Repeated executions with the same tools resend the full catalog and duplicate tool metadata. Catalog revisions let clients reuse an acknowledged catalog within a session.
## What changed
- Negotiate catalog revision support over stdio and gRPC, retaining full requests for hosts without support.
- Send tool definitions when installing a revision, then reference that revision for matching executions. Commit client catalog state only after execution admission succeeds; concurrent admissions can send full requests.
- Keep immutable tool snapshots for each cell, reject invalid, unknown, or conflicting revisions, and share identical definitions and runtime metadata across sessions in the same process.
## Testing
Add tests for acknowledged reuse, abandoned admissions, changed definitions, revision conflicts, session isolation, snapshot lifetimes, and shared metadata.
GitOrigin-RevId: d2f29bf668bc2279715f5f1b7d24310923c57d33
* Allow network policy to enable transparent TCP capture (#61851)
## What changed
- Add `transparent_tcp` to network configuration and managed requirements, defaulting to off. When enabled, route outbound TCP from managed Linux sandbox commands through the managed SOCKS5 proxy without requiring an executor startup flag.
- Propagate the setting through local and remote execution, require an enabled SOCKS5 proxy, and check the executor's `networkProxyTransparentTcp` capability before remote launches.
- Refresh the live proxy when switching between permission profiles with different network settings.
## Testing
Add coverage for configuration-driven sandbox capture, rejection of uns…
ayanamist
pushed a commit
to ayanamist/codex
that referenced
this pull request
Nov 20, 2026
- Added GPT-6.2 Sol and Astra to model catalogs, with Sol as the default catalog selection. (openai#62106) - Enabled the TUI workspace by default, with searchable document previews, image previews, and subagent transcripts alongside the main conversation. (openai#61352, openai#61888, openai#61889, openai#61919, openai#62157) - Added configurable undo and redo shortcuts to the non-Vim prompt composer, including restoration of attachments and large pastes. (openai#61954) - Added `codex exec --remote <ADDR>` to start or resume noninteractive sessions on an existing app server. (openai#61707) - Added `/rc` and `/remote` to manage local remote control and display device pairing codes from the TUI. (openai#62121) - Added custom MCP status line selection and authoring through `/statusline` when `tui_extensions_statusline` is enabled. (openai#61979, openai#61988, openai#62037) ## Bug Fixes - Preserved drafts, queued follow-ups, and interrupted input with their original threads when switching or resuming sessions. (openai#61216) - Kept permission profiles intact when changing working directories. (openai#61195) - Prevented late completion events from cancelling approvals for a newer turn. (openai#61801) - Preserved earlier edits in aggregate diffs when steering an active turn. (openai#61820) - Fixed scrolling that inserted stray characters, composer caret jumps, and redraws using stale terminal dimensions. (openai#62139, openai#62174, openai#62175) - Fixed enterprise MCP sign-in for identity providers that issue ID tokens without refresh tokens. (openai#62129) ## Chores - Updated source builds and release tooling to Rust 1.99.1. (openai#61205) - Updated XML dependencies and removed obsolete security advisory exceptions. (openai#62068) ## Changelog Full Changelog: openai/codex@rust-v0.170.0...rust-v0.171.0 - openai#61178 Enable conversation-scoped speed selection for Cloud turns @bc-openai - openai#61180 Reclaim abandoned trusted Git repositories @etraut-openai - openai#61181 Fix pagination for unindexed threads sorted by ascending recency @etraut-openai - openai#61182 Support renaming cloud threads @bc-openai - openai#61183 Fix fork parent metadata in reconstructed TUI sessions @fcoury-oai - openai#61185 Defer Guardian context limits to request preparation @ioanbudea-OAI - openai#61186 Keep plan item IDs unique after completion @neerajrj-oai - openai#61187 Add authenticated GCS caching for Bazel CI and releases @dkovalenko-oai - openai#61194 Remove redundant legacy permission helpers @ioanbudea-OAI - openai#61195 Preserve permission profiles across working directory updates @ioanbudea-OAI - openai#61196 Clear inline image previews before history insertion can scroll them @dob-oai - openai#61197 Clarify remote message board and clock documentation @anp-oai - openai#61198 Add graceful agent-tree suspension and recovery @bryanashley - openai#61199 Align rollout trace replay with the same-binary contract @cassirer-openai - openai#61200 Unify TUI status content and layout caching in `StatusLine` @fcoury-oai - openai#61201 Clean up Rust error handling and OTLP test assertions @ioanbudea-OAI - openai#61205 Upgrade the Rust toolchain to 1.99.1 @ioanbudea-OAI - openai#61206 Enforce Linux seccomp restrictions for x32 syscalls @dhavalkapil-oai - openai#61207 Add SPIFFE JWT-SVID support for workload identity authentication @cooper-oai - openai#61210 Retain TUI delegation prompts in thread model history @won-openai - openai#61211 Add local status line provider configuration @joesavona - openai#61212 Add persistence support for status line provider selections @joesavona - openai#61213 Support model catalog Apps usage instructions @goodman-oai - openai#61215 Track dictation usage from accepted user inputs @chrisdong-oai - openai#61216 Preserve thread input across TUI session resumes @bc-openai - openai#61218 Hide attached threads from the agents overview @fcoury-oai - openai#61219 Hide TUI status details for read-only history @joesavona - openai#61220 Deduplicate overlapping Apps startup tool listings @charliemarsh-oai - openai#61221 Forward repeated signals through the npm wrapper @etraut-openai - openai#61222 Store rollout trace payloads in compressed shards @cassirer-openai - openai#61224 Include AppX event IDs in Windows runtime registration errors @zm-oai - openai#61227 Include Win32 error codes in MXC process launch failures @zm-oai - openai#61228 Add a missing semicolon in the realtime call test helper @bc-openai - openai#61248 Add MCP inventory support for statusline providers @joesavona - openai#61249 Resolve MCP statusline providers and read thread-scoped resources @joesavona - openai#61250 Add bounded streaming discovery for statusline providers @joesavona - openai#61251 Refactor history and notes tools around backend traits @euroelessar - openai#61253 Move rollout trace recording to a background worker @cassirer-openai - openai#61254 Fix Bazel tool resolution for bubblewrap and voice builds @bencodes-oai - openai#61255 Honor `PIP_INDEX_URL` for V8 Python dependencies @bencodes-oai - openai#61256 Block `request_key` in Linux network sandbox filters @dhavalkapil-oai - openai#61257 Preserve MCP registration scope across client operations @sayan-oai - openai#61259 Update realtime model and honor provider-specific voice defaults @cooper-oai - openai#61260 Accept ERS v1 and v2 tunnel JWTs @dines-oai - openai#61263 Refactor session window access and async compaction test setup @maxj-oai - openai#61264 Enable gzip and zstd support in the shared HTTP client @joeyp-openai - openai#61272 Set the environment field in statusline MCP requests @anp-oai - openai#61276 Consolidate Windows filesystem helper sandbox preparation @viyatb-oai - openai#61283 Accept explicit contribution context for MCP runtime configuration @sayan-oai - openai#61286 Add and preserve the marketplace auto-update setting @smurching-oai - openai#61337 Centralize managed network proxy startup @viyatb-oai - openai#61338 Record host-confirmed Code Mode wait targets in rollout traces @tz-openai - openai#61339 Add session-scoped stores for stable model-facing IDs @anp-oai - openai#61341 Add opt-in prompt image sanitization @vivi - openai#61342 Cancel abandoned cloud thread list requests @bc-openai - openai#61343 Title saved side chats from their first direct input @fcoury-oai - openai#61344 Add per-item retention policies for injected history @vivi - openai#61345 Add opt-in elastic budgeting for asynchronous Guardian requests @ioanbudea-OAI - openai#61346 Apply elastic entry caps to Guardian classifier evidence @ioanbudea-OAI - openai#61347 Reserve item ID overhead before elastic context allocation @ioanbudea-OAI - openai#61349 Add managed CA defaults for Deno and Google Cloud SDK @viyatb-oai - openai#61350 Reflect accepted cloud model selections in TUI status @bc-openai - openai#61351 Expose canonical network proxy policy patterns @viyatb-oai - openai#61352 Mark the TUI workspace as stable and enable it by default @fcoury-oai - openai#61353 Centralize TUI read-only view checks @bc-openai - openai#61354 Avoid rewriting unchanged Guardian channel descriptions @felixxia-oai - openai#61355 Upgrade Bazel rules_rs to 0.2.3 @seanh-oai - openai#61356 Add deferred MCP reprojection for the next regular turn @kchainani-oai - openai#61357 Clarify removal scope for profile MCP servers @etraut-openai - openai#61358 Add structured error kinds for exec-server process starts @andrewgu-oai - openai#61359 Resolve queued attachment paths against the thread working directory @etraut-openai - openai#61365 Limit MCP status discovery to the requested page @charliemarsh-oai - openai#61369 Use native permission profiles for diagnostics and sandbox checks @ioanbudea-OAI - openai#61370 Remove BuildBuddy presets from the checked-in Bazel configuration @hintz-openai - openai#61371 Add opt-in signer-service support for macOS releases @tarunoai - openai#61372 Add opt-in transparent TCP routing for Linux sandboxes @viyatb-oai - openai#61374 Delegate installed plugin recommendation filtering to the endpoint @zamoshchin-openai - openai#61379 Remove unused workspace entries and simplify Rust code @andrewgu-oai - openai#61380 Add cell-aware mouse selection to transcript tables @fcoury-oai - openai#61381 Update the harness provenance comment in context history @vivi - openai#61382 Make clock reads synchronous and remove client clock requests @euroelessar - openai#61383 Keep the composer responsive while opening new conversations @bc-openai - openai#61384 Support Orbit originators in model catalog partitioning @bromano-oai - openai#61385 Add configurable idle heartbeats to Code Mode gRPC streams @surajs-oai - openai#61386 Reuse cloud plugin catalogs across turns until invalidated @TAFOYA-OAI - openai#61387 Refresh plugin recommendations when tooling state changes @zamoshchin-openai - openai#61388 Include the Windows sandbox service in release builds @zm-oai - openai#61389 Reduce session submission channel memory with boxed payloads @charliemarsh-oai - openai#61390 Preserve active additional context across compaction @dylan-hurd-oai - openai#61391 Normalize managed network requirements before merging @viyatb-oai - openai#61393 Add optional release IDs to cloud plugin source locations @zamoshchin-openai - openai#61394 Add opt-in file-backed tool audio @hung-oai - openai#61395 Remove legacy sandbox-policy accessors from configuration @ioanbudea-OAI - openai#61397 Add default model provider selection to the app server @abhinav-oai - openai#61398 Restore shared connector metadata for Codex Apps tools @mzeng-openai - openai#61400 Retry incomplete cloud catalogs with exponential backoff @TAFOYA-OAI - openai#61401 Release MCP OAuth read locks before keyring access @celia-oai - openai#61402 Update Daybreak links in TUI cybersecurity notices @jamy-OAI - openai#61403 Add a structured status-line snapshot for the displayed thread @joesavona - openai#61405 Show the primary executor's workspace in TUI status surfaces @joesavona - openai#61408 Expose token usage totals in statusline state @joesavona - openai#61409 Expose context usage in statusline state @joesavona - openai#61410 Expose thread costs in statusline state and reject stale usage reads @joesavona - openai#61411 Ignore stale workspace headline requests and archived messages @joesavona - openai#61415 Expose the workspace headline in structured status-line state @joesavona - openai#61417 Expose Codex rate limits in statusline state @joesavona - openai#61418 Require a government workspace for the government backend @jackz100 - openai#61419 Resolve pasted Windows paths with wslpath in WSL @etraut-openai - openai#61420 Clear the user endpoint override during GCP setup @alexsong-oai - openai#61421 Use thread-scoped model catalogs for model lookups @abhinav-oai - openai#61422 Add keyboard table selection to the transcript @fcoury-oai - openai#61424 Refill the transcript viewport when collapsing tool groups @fcoury-oai - openai#61426 Enable incremental tools by default for Amazon Bedrock @akira-oai - openai#61428 Require OAuth CONNECT metadata for Portals TCP tunnels @apanasenko-oai - openai#61429 Refresh cloud plugin and skill catalogs during step preparation @TAFOYA-OAI - openai#61430 Instrument MCP OAuth credential store locks @celia-oai - openai#61434 Close abandoned tool dispatch traces as aborted @maxj-oai - openai#61437 Avoid starting dormant REPL servers for cleanup hooks @dob-oai - openai#61438 Use the provider default RPC in the TUI @abhinav-oai - openai#61444 Add process-local launch directories for shared MCP servers @charliemarsh-oai - openai#61446 Add thread ID inclusion filters to `thread/list` @btraut-openai - openai#61449 Add explicit cloud catalog refresh before turn admission @TAFOYA-OAI - openai#61452 Add optional tool output rendering for context window hints @euroelessar - openai#61461 Refactor session mail recording and compaction metadata capture @euroelessar - openai#61465 Move JSON byte counting into `codex-utils-string` @euroelessar - openai#61473 Persist timestamped realtime frames before acknowledging completion @zahan-oai - openai#61480 Add snapshot pagination for persisted realtime history @zahan-oai - openai#61481 Allow Ctrl+C to quit during Cloud session switches @bc-openai - openai#61486 Keep archived threads read-only and support unarchiving in the TUI @bc-openai - openai#61488 Harden Git remote collection and limit remote URL metadata @ningyi-oai - openai#61490 Preserve the current Cloud task until navigation is ready @bc-openai - openai#61494 Describe context and permissions per environment behind a feature flag @sayan-oai - openai#61535 Add trusted request-country metadata to Responses requests @goodman-oai - openai#61562 Unify model request hook lifecycles across sampling and compaction @tz-openai - openai#61577 Add response processing after completion and usage accounting @tz-openai - openai#61578 Recheck rollout budgets before starting tool work @tz-openai - openai#61579 Support fractional rollout budgets and configurable context reminders @tz-openai - openai#61580 Account for synchronous MCP post-hook costs in rollout budgets @tz-openai - openai#61581 Record neutral interruption markers for rollout budget stops @tz-openai - openai#61582 Gate new rollout work on shared budget exhaustion @tz-openai - openai#61583 Refactor rollout budget checks and turn completion state @tz-openai - openai#61587 Add request IDs and attempt numbers to model request hooks @tz-openai - openai#61595 Scope TUI history item lookups to their owning turns @etraut-openai - openai#61596 Keep agent overview refresh state scoped to each backend @bc-openai - openai#61599 Report Cloud stream recovery failures and cancel abandoned reads @bc-openai - openai#61600 Enable automatic titles for Cloud conversations @bc-openai - openai#61619 Return to the command center while archiving a task @bc-openai - openai#61622 Clarify window ID discovery in history tool guidance @euroelessar - openai#61663 Fix config reads with relative working directories @charliemarsh-oai - openai#61686 Defer plugin manifest loading until marketplace entries are selected @charliemarsh-oai - openai#61688 Add TUI review ownership and risk guidance @bc-openai - openai#61690 Keep pasted text inline in TUI goals @etraut-openai - openai#61692 Fix status detail truncation for wide Unicode characters @etraut-openai - openai#61694 Discard unsaved experimental feature edits on cancel @etraut-openai - openai#61697 Restore the terminal's original alternate-scroll mode @etraut-openai - openai#61706 Refactor exec to use the shared app-server client @etraut-openai - openai#61707 Support remote app servers in `codex exec` @etraut-openai - openai#61709 Avoid legacy transcript reads in the agents overview @etraut-openai - openai#61710 Enable slash-command completion for unavailable threads @etraut-openai - openai#61711 Open Windows desktop sessions through the registered URL handler @etraut-openai - openai#61713 Restore raw mode after returning from external editors @etraut-openai - openai#61724 Use `clip.exe` for single-line ASCII clipboard copies in WSL @etraut-openai - openai#61725 Fix Unicode grapheme highlighting in history search @etraut-openai - openai#61726 Preserve graphemes in mention search match highlighting @etraut-openai - openai#61727 Optimize default and attached thread listings with targeted indexes @dkovalenko-oai - openai#61730 Fix thread listing migration numbering and test setup @charliemarsh-oai - openai#61731 Keep bidirectional TUI headers stable during shimmer @etraut-openai - openai#61737 Preserve agent message phases in the cloud backend @bc-openai - openai#61738 Reuse matching thread inventories for lightweight MCP status pages @charliemarsh-oai - openai#61742 Mark cloud threads with a cloud icon in the TUI @bc-openai - openai#61744 Clarify shell-specific login guidance for `exec_command` @zm-oai - openai#61747 Refactor history and notes tool registration @euroelessar - openai#61762 Fix the missing label style in the mention truncation test @tz-openai - openai#61764 Simplify history and notes tool registration @euroelessar - openai#61771 Remove numeric positions from project responses @apanasenko-oai - openai#61784 Centralize permission profile compatibility helpers in protocol @ioanbudea-OAI - openai#61785 Strengthen workspace-write configuration tests @ioanbudea-OAI - openai#61795 Add lifecycle-managed Guardian housekeeping @felixxia-oai - openai#61797 Wire Guardian V3 housekeeping into the app server @felixxia-oai - openai#61798 Add a dedicated Guardian v3 housekeeper inference client @felixxia-oai - openai#61799 Route Guardian housekeeping through its dedicated sampler @felixxia-oai - openai#61800 Clarify managed human command checkpoint stability @felixxia-oai - openai#61801 Preserve active turn approvals when an earlier turn finishes late @jif-oai - openai#61817 Isolate app-server turn metadata by turn ID @jif-oai - openai#61820 Preserve aggregate turn diffs across steering @jif-oai - openai#61833 Avoid unnecessary rollout item copies during child thread creation @charliemarsh-oai - openai#61837 Avoid redundant store reads for loaded thread metadata @charliemarsh-oai - openai#61840 Resolve fork ancestry lazily for descending history pages @charliemarsh-oai - openai#61841 Close late command approval items when turns are interrupted @jif-oai - openai#61845 Defer code-mode tool catalog construction until first access @charliemarsh-oai - openai#61846 Reuse code-mode tool catalogs across executions @charliemarsh-oai - openai#61851 Allow network policy to enable transparent TCP capture @viyatb-oai - openai#61852 Broadcast read-state changes to experimental clients @yiqian-oai - openai#61854 Allow model metadata to control multi-agent tools in code mode @jif-oai - openai#61860 Add opt-in tool-call attribution for upstream proxies @hbuyle-oai - openai#61865 Report remote plugin local versions from matching cached packages @charliemarsh-oai - openai#61866 Preserve SQLite row metadata in thread listings @charliemarsh-oai - openai#61871 Preserve plugin skill picker ranking across version changes @bc-openai - openai#61878 Support flat subgraphs in native Mermaid flowcharts @etraut-openai - openai#61880 Preserve local Markdown document targets in transcript rendering @fcoury-oai - openai#61887 Add app-server file preview read helpers @fcoury-oai - openai#61888 Add read-only document previews to the TUI sidebar @fcoury-oai - openai#61889 Add search, selection, and link navigation to document previews @fcoury-oai - openai#61890 Open source file links at line and column targets in the TUI @fcoury-oai - openai#61894 Acknowledge agent messages and clarify how to wake idle recipients @rjmarsan - openai#61896 Bound rollout trace capture with configurable storage limits @cassirer-openai - openai#61897 Add opt-in UTC dates to environment context @sayan-oai - openai#61898 Tie Linux sandbox proxy bridges to the launcher lifetime @viyatb-oai - openai#61900 Fix proc mount fallback detection for Bubblewrap 0.12 @viyatb-oai - openai#61902 Filter thread listings before scanning rollout previews @charliemarsh-oai - openai#61908 Pass a per-call voice session ID through TUI realtime startup @chrisdong-oai - openai#61909 Add opt-in item-boundary interrupts for subagents @jif-oai - openai#61910 Preserve native sandbox executable paths and PTY dispatch names @viyatb-oai - openai#61911 Default Statsig metrics exports to Zstandard compression @tvh-openai - openai#61915 Fall back to the built-in status line for invalid providers @joesavona - openai#61916 Preserve remote compaction summaries when interrupting child agents @jif-oai - openai#61919 Add sidebar image previews and present generated images after answers @fcoury-oai - openai#61920 Track conversation files for the TUI sidebar @fcoury-oai - openai#61922 Add conversation files to the TUI sidebar chooser @fcoury-oai - openai#61926 Allow agent search by thread ID and Git branch @bc-openai - openai#61928 Encapsulate app-server thread-list locking in `ThreadListState` @charliemarsh-oai - openai#61929 Freeze Guardian review views at ordered evidence cutoffs @felixxia-oai - openai#61931 Log Windows MXC deny-read glob expansion timings @iceweasel-oai - openai#61934 Allow independent app-server thread resumes to overlap @charliemarsh-oai - openai#61939 Preserve partial Git metadata when worktree status is slow @ningyi-oai - openai#61940 Add saved environment listing to the Cloud client @bc-openai - openai#61941 Route turn-start client metadata through a dedicated helper @chrisdong-oai - openai#61942 Centralize exec-server launches in `WrappedSandboxCommand` @viyatb-oai - openai#61945 Allow host-started forks to inherit the root session ID @rhan-oai - openai#61946 Include enclosing tool context in nested Guardian approvals @ankushg - openai#61947 Mask system SSH config drop-ins in the Linux sandbox @viyatb-oai - openai#61949 Extract user input preparation into `codex-user-input` @anp-oai - openai#61951 Refactor composer undo and redo history @etraut-openai - openai#61954 Add undo and redo to the non-Vim prompt composer @etraut-openai - openai#61955 Bound item loading for paginated `read_thread` calls @charliemarsh-oai - openai#61956 Support saved environments when starting Cloud threads @bc-openai - openai#61958 Support turn-scoped exhaustion in host usage accounting @rhan-oai - openai#61959 Prewarm restored file images on cold resume @bkotsopoulos - openai#61962 Capture local attachments before queuing turn input @anp-oai - openai#61964 Add HTTP/2 fallback for SSH tunnels @richardopenai - openai#61969 Set explicit image detail in the restored-history prewarm test @bc-openai - openai#61973 Preserve accepted tool outputs and local resets in rollout traces @cassirer-openai - openai#61974 Add a Cloud environment picker for new TUI conversations @bc-openai - openai#61975 Simplify SSH tunneling and honor system HTTPS proxies @richardopenai - openai#61976 Add mouse scroll speed to the TUI config panel @xma-oai - openai#61977 Keep TUI quota state scoped to the active provider @joesavona - openai#61978 Use the current billing plan for TUI thread usage @joesavona - openai#61979 Render selected MCP statusline providers in the TUI footer @joesavona - openai#61981 Poll MCP statusline providers with fresh state and bounded reads @joesavona - openai#61985 Refresh status line providers on config and connection changes @joesavona - openai#61986 Preserve statusline provider selections across thread startup @joesavona - openai#61988 Add a status line provider picker to `/statusline` @joesavona - openai#61990 Classify status line provider failures and shorten error messages @joesavona - openai#61993 Surface status line discovery failures and lookup timeouts @joesavona - openai#62034 Add TypeScript contracts for custom statusline providers @joesavona - openai#62036 Add a bundled skill for authoring MCP statuslines @joesavona - openai#62037 Add custom status line authoring to `/statusline` @joesavona - openai#62041 Add aggregate metrics for status line provider usage @joesavona - openai#62045 Record statusline mode on the first prompt of each thread visit @joesavona - openai#62046 Record status line provider starts and failures @joesavona - openai#62047 Distinguish image and tool audio attachment uploads @seanh-oai - openai#62048 Add a keyboard diagram to TUI shortcut help @bc-openai - openai#62050 Centralize sandbox network and shell credential setup @viyatb-oai - openai#62051 Expand the `spawn_agent` model listing cap to 16 @rhan-oai - openai#62055 Escape installer PATH entries for shell metacharacters @etraut-openai - openai#62058 Stop masking system SSH configuration drop-ins in Linux sandboxes @viyatb-oai - openai#62061 Use Bazel's Python runtime for MCP permission hook tests @bencodes-oai - openai#62065 Reject conflicting remote endpoints for resume and fork @etraut-openai - openai#62066 Fix turn interrupt reply ordering and shutdown handling @jif-oai - openai#62067 Refresh dependency locks and RustSec advisory exceptions @jif-oai - openai#62068 Upgrade XML dependencies and remove obsolete advisory ignores @jif-oai - openai#62070 Allow the expanded agent model shortlist in prompt-prefix tests @jif-oai - openai#62071 Test prompt-prefix preservation across app-server resume @jif-oai - openai#62072 Preserve client attribution when spawning subagents @jif-oai - openai#62074 Simplify Guardian history review preambles @swastik-oai - openai#62076 Reuse regexes across rollout snippet searches @charliemarsh-oai - openai#62079 Support device-code login for config servers @vishnu-oai - openai#62080 Add policy-checked dispatch for bundled App hooks @jif-oai - openai#62083 Isolate Guardian v2 score caches by policy revision @ioanbudea-OAI - openai#62085 Skip redundant history materialization on flush @charliemarsh-oai - openai#62089 Avoid an admission deadlock in the code mode spawn test @jif-oai - openai#62090 Append transcript provenance to Guardian JSON instructions @jif-oai - openai#62092 Skip recent rollouts before reading headers during compression @charliemarsh-oai - openai#62093 Return empty success output from v2 `send_message` @surajs-oai - openai#62094 Ensure Windows sandbox passwords include every character class @dylan-hurd-oai - openai#62095 Normalize Bedrock Mantle commentary before replay @adhajar-oai - openai#62096 Centralize app-server turn error conversion @adi-oai - openai#62099 Clarify recovery guidance for stale Guardian authorization @rjmarsan - openai#62100 Support transparent TCP with inherited PID namespaces @adaml-oai - openai#62102 Stabilize app-server and login integration tests @dylan-hurd-oai - openai#62103 Preserve trace context during WebSocket startup prewarm @wiltzius-openai - openai#62105 Preserve plugin runtimes across catalog metadata updates @charliemarsh-oai - openai#62106 Add GPT-6.2 Sol and Astra to model catalogs @andrewgu-oai - openai#62107 Log macOS user verification enrollment failure diagnostics @bz-openai - openai#62110 Support OTel header helpers in local managed requirements @abhinav-oai - openai#62112 Trust the bundled Memory session hook without saved hashes @nvogt-oai - openai#62114 Add external header auth for existing realtime calls @shuo-openai - openai#62116 Stabilize TUI startup tests and strengthen daemon recovery coverage @dylan-hurd-oai - openai#62120 Fix Node launcher detection in the standalone installer @etraut-openai - openai#62121 Add `/rc` to manage remote control from the TUI @etraut-openai - openai#62122 Restrict control of the Windows sandbox service @chess-oai - openai#62124 Refresh tool hashes in core scenario snapshots @andrewgu-oai - openai#62125 Include classifier turn IDs in Guardian v2 analytics @marksteinbrick-oai - openai#62126 Share picker setup for the TUI status line and terminal title @bc-openai - openai#62127 Use the local session index in the multi-backend resume picker @charliemarsh-oai - openai#62128 Preserve base and developer instructions in host child preparation @jif-oai - openai#62129 Support enterprise MCP sign-in without refresh tokens @nicksteele-oai - openai#62131 Isolate auth storage attribution tests from account switches @dylan-hurd-oai - openai#62132 Stream partial thread search results and support cancellation @matthewdavis-oai - openai#62133 Add live evidence retrieval for Guardian v3 reviewers @felixxia-oai - openai#62134 Add reusable per-agent reviewer conversations to Guardian v3 @felixxia-oai - openai#62135 Use live evidence retrieval and subscriber inboxes in Guardian @felixxia-oai - openai#62136 Deliver subscribed evidence to idle Guardian reviewers @felixxia-oai - openai#62137 Remove fixed message-board views and bulk subscriptions @felixxia-oai - openai#62138 Use the state database first for TUI analytics thread lists @charliemarsh-oai - openai#62139 Update `crossterm` to fix stray input when scrolling @bc-openai - openai#62140 Hold Cloud reply streams until history can be refreshed @bc-openai - openai#62141 Repair missing or stale Windows sandbox Core registration @zm-oai - openai#62142 Add audio transcription to the backend client @ax-openai - openai#62144 Preserve web search provider ownership across thread resumes @owenlin0 - openai#62145 Signal workspace routing readiness in account updates @jonluca - openai#62146 Batch mouse wheel scrolling in the TUI @bc-openai - openai#62149 Show subagents and their status in the TUI sidebar chooser @fcoury-oai - openai#62150 Cancel Cloud overview refreshes that block TUI navigation @bc-openai - openai#62151 Limit recovery after repeated cloud reply stream disconnects @bc-openai - openai#62153 Reduce overhead in CLI integration tests @dylan-hurd-oai - openai#62157 Open subagent transcripts in the TUI sidebar @fcoury-oai - openai#62159 Open subagent transcripts from activity links in the TUI @fcoury-oai - openai#62160 Wait for the system `bwrap` probe with a pidfd @bc-openai - openai#62162 Stabilize app-server `app/list` integration tests @dylan-hurd-oai - openai#62163 Move the app-server socket relay into the Codex CLI @bolinfest - openai#62165 Wait for the search connector in hosted web search tests @dylan-hurd-oai - openai#62171 Extract TUI thread resume finalization @bc-openai - openai#62172 Remove Python from MCP permission request hook tests @seanh-oai - openai#62174 Keep the TUI composer caret anchored while typing @etraut-openai - openai#62175 Fix stale terminal dimensions in immediate TUI redraws @etraut-openai - openai#62176 Expose `bioPolicy` errors in app-server v2 @owenlin0 - openai#62183 Select process sandboxes during launch preparation @viyatb-oai - openai#62186 Flush HTTP/2 tunnel data to the local TCP writer @richardopenai
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolve fork ancestry lazily for descending history pages
Why
Reading the newest turns or items in a fork previously resolved the entire rollout lineage, even when the page only needed recent segments. This caused unnecessary ancestor reads and could fail when an unused ancestor was missing.
What changed
Introduce an incremental
LineageWalkand use it to resolve descending history pages only as far as needed for the cursor, requested rows, and next-page lookahead. Defer sibling rollout discovery until a parent is needed, while preserving newer turns' overrides when resuming in an ancestor.Keep full lineage resolution for ascending reads, update replay, item anchors, and inherited summary lookup.
Testing
Add regression coverage for pages with missing unused ancestors, continuation within a parent, turn overrides, inherited summaries, and exact page-boundary lookahead. Extend coverage for descending item pages using the selected rollout.