You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(bots): inset the avatar description field and keep picture generation going after the picker closes - #46245
In a bot's picture picker, the "Describe your bot's look…" box ran right up to the popover's edges. It now sits inside them with even spacing.
Making a picture takes a while, and before this change closing the picker threw the picture away. Now you can close the picker and keep working. The bot's picture shows a spinner, and the new picture is put in place when it's ready.
Files
Added
Deleted
Net
Test
3
$\color{#1a7f37}{\Huge{\mathbf{+}}}$681
0
$\color{#1a7f37}{\Huge{\mathbf{+}}}$681
Prod
37
$\color{#1a7f37}{\Huge{\mathbf{+}}}$2023
$\color{#cf222e}{\Huge{\mathbf{−}}}$573
$\color{#1a7f37}{\Huge{\mathbf{+}}}$1450
What Changed
Field inset (visual only)
The description field is 12px in from the popover's sides and bottom, with a 12px gap under the carousel. Its corners are rounded to fit inside the popover's, and the send button lines up with the text's inner padding.
The mascot’s color and outfit note gets the same 12px bottom inset. The note is hidden on the Generate face.
Generation keeps going after the picker closes
Before: closing the picker (or the settings page, or the New bot dialog) canceled the run.
After:
While a run is going, the tile reads "Generating…" with a muted "Close anytime" under it (11px, with wrapping for longer translations).
Close the picker in bot settings or the panel header and the avatar shows a dark overlay with a spinner, plus a "Generating…" tooltip. The bot's row keeps that overlay after you leave its settings.
In New bot / Import, the small badge on the picture shows a spinner instead of the pencil.
When the picture is ready it's put in place automatically. If you create the bot before then, the picture follows the new bot.
If it fails while its picker is closed, or after you've left it, a toast says "Couldn't generate a picture for {name}." Reopening the picker in bot settings shows the error, as before.
Nothing else is new (no extra button, no success toast).
A picture you chose yourself always wins. If, after asking for a picture, you pick a mascot, an outfit, a color or your own image, or start a paste or upload, the generated picture waits in its slot instead of replacing your choice. A picture you upload or paste keeps the Generate slot. A newer choice that lands first wins silently.
How it works
Host: each bot gets an avatarRevision, bumped on every picture, outfit or color write. Uploading a picture can name the revision it expects (expectedAvatarRevision), and the host refuses with bot_avatar_changed if the picture changed in the meantime. The write queue compares the saved revision and its recovery epoch. Uncertain records preserve the PNG and manifest. An explicit choice can repair a verified home and invalidate earlier tokens. A Generate reads its own bot home before entering the write queue to commit a still-current snapshot. A new capability, bots.avatar-revision.v3, advertises it.
Renderer: runs live in a module-level store (avatar-generation-requests.ts), not in the picker's component state, so they outlive the picker. Only the store uploads a generated picture to an existing bot, and it claims the request before uploading so it can upload only once. A small per-bot ledger (bot-picture-ops.ts) records picks, saves and intakes, so the store knows which revision to expect and when a choice was made after Generate. The anchor advances only across consecutive acknowledged local writes. A gap preserves the external editor’s choice.
Create: New bot and Import keep the run above the picker. At Create, the run is handed to the new bot (or given back to the dialog if Create fails).
If the window closes or reloads mid-run, the existing abortWhenOwnerDocumentEnds cleanup still cancels the run, so the IPC is unchanged.
Why
Asked for in design review: inset the field, then "you need to have a cue that user can bg it though". A spinner on the avatar plus a short "Close anytime" line was the smallest cue that tells you closing is safe without adding a new control. Checked against how comparable products handle this.
The revision check exists because an automatic upload can otherwise overwrite a picture the user picked while the run was going, from this window, another window or a paired client. Comparing the picture itself isn't enough: switching A → B → A looks unchanged but is a newer choice.
Linked Issue
Internal design request, no issue.
Visual Proof
Field inset, picker at its narrowest (320px), empty (light top, dark bottom):
Long description (six lines, the most before it scrolls), in the original implementation. The rebased picker shows its color and outfit note only on the mascot face:
New bot, picker closed mid-run (spinner in the badge):
New bot, picture finished while closed and put in place on its own:
Failure after leaving the bot's settings (the same toast shows after Create):
Testing
Host tests cover stale upload refusal after an outfit-only change, concurrent upload ordering, and fresh versus stale requests after a lost profile save.
Renderer tests cover generation eligibility, draft handoff, and the visible mascot and outfit after an upload commits first.
At 32aa5baa5a6d, Chromium interactions covered both themes, closing and reopening the picker, the progress tooltip, and keyboard cancellation. A separate renderer run reopened the picker directly on the mascot and selected a different outfit or the current one, with each ordering of a simulated host upload and an outfit save. All four retained the chosen outfit on the mascot.
At b7a75d5682f7, hidden Chromium input exercised two editors sharing a real BotController and temporary bot homes. Saved PNG bytes, bot.json, the displayed avatar and the Generate slot were checked across a competing paste, outfit or color change, local acknowledgement and successive Generate attempts.
At 795059b78826, a before-and-after production controller replay verified that refusing Generate preserved the exact damaged manifest, manual PNG and stale profile. Explicit repair rotated the history identifier and rejected the prior token at the same numeric revision. Coherent legacy zero and complete positive-revision recovery both passed.
On the integrated C5 candidate, a conflicting revisionless home preserved the complete manifest and PNG. Pause succeeded on damaged homes, explicit picks repaired verified homes, and an old token failed even at the same numeric revision. Listing, B’s preparation, a B upload and an A upload all completed while A’s prior home read remained suspended. After release, both new PNGs and revisions remained intact.
The actual New bot dialog retained the draft in all four failed Create and retry sequences. A three-request sequence saved the third picture despite a rejected second request and either a lost first acknowledgement or a failed catalog refresh.
Refused and null legacy Create each preserved both a running draft and a result that landed during Create. All four cases retried with zero automatic uploads.
A rolled-back full profile recovered from a valid newer home. An unreadable home, malformed JSON and invalid revision refused stale uploads before changing bytes. With one home read held, 1, 8 and 32 lagging records each took one list collection pass and zero home reads.
The local three-suite command timed out without suite results. The RPC parameter catalog verification and commit hooks passed. The local changed-file gate waited for the shared runner and produced no test results.
The pristine manifest matches the legacy field set. Configured initial looks and explicit clears in revisioned homes both survive serialization.
Platforms: macOS (fixtures and unit tests). The change is renderer and bot-host only, with no platform-specific paths.
I manually tested these changes locally
Automated tests added/updated, or explained why not below
Every added test fails without this change and avoids the test anti-patterns
Performance
The inset is CSS only.
Each BotAvatar reads one boolean from the request store via useSyncExternalStore. It re-renders only when that boolean flips, at the start and end of a run.
The ledger is an in-memory map keyed by bot, with no polling.
On the host, the revision check adds one read of bot.json for each bot update or avatar upload inside its existing write queue. Generate reads the selected bot’s revision once at the start. Cold and warm lists do zero home reads for avatar repair.
Risk
Level: Medium.
Riskiest part: the automatic upload replacing a picture the user chose. The host revision check and the renderer's choice tracking guard against this, and both are covered by the tests above. If it went wrong, a generated picture would replace one picked moments earlier.
Older paired servers without bots.avatar-revision.v3 never get an automatic upload. The picture waits in its slot for an explicit pick, and a run left after closing settings ends with the failure toast.
avatarRevision is an optional field. Older builds ignore it. Matching legacy profile and home picture data establish revision zero. Ambiguous records require an explicit repair.
Back out with a plain revert. Bots keep a harmless avatarRevision field in bot.json.
Review
Eng - Reviewer's C4 accepted the renderer race fixes and first-list readiness and required three corrections to host recovery and preparation. C5 closed verified-owner manual recovery and cross-bot preparation at 413b828fb424. Eng - Reviewer passed C6 at 795059b78826 and closed the remaining damaged-history finding. All 24 CI unit shards passed, including the 10 controller revision tests on shard 14. E2E was skipped. CI run UX Designer accepted the recovery behavior and both closed-picker screenshots after failed Create. The renderer and English catalog contain both requested error strings.
The proof used two headless Chromium pages and a production bot controller on macOS. The fixture supplied agent output, transport, and catalog notifications. Windows, Linux, a packaged Electron app, and a paired remote server were outside this local run. Capable hosts compare revisions in their write queue. Incapable hosts save a generated picture only through an explicit selection.
Agent skill upstream boundary
Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.
It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.
Bot avatar updates now maintain revisions for picture, color, and outfit changes. Avatar uploads can include an expected revision, which revision-aware hosts check before writing. Avatar generation requests can persist beyond a picker, coordinate with picture selections and saves, and transfer to a bot created by a dialog. The UI displays active generation state, and new fixtures and tests cover these flows.
Merge Risk: Low · up to 3c7a6
Bot-picture generation can keep running after the picker closes, and the new revision check protects newer picture choices. A few edge cases remain. An uploaded picture can occasionally be overwritten by a generation that was already running. A stale revision after a crash can make an automatic upload fail without any message. In Import, the Generate tile can briefly show an older generated picture above a newer upload. These are bounded and recoverable, so the change is mergeable with follow-up fixes.
Pre-merge checks: 3 · 1
Failed checks: 1 warning
Check name
Status
Explanation
Resolution
Description check
The description follows the template closely. It covers ELI5, What Changed, Why, Visual Proof, Testing, Performance, Risk, Review, and the upstream boundary checkbox. The Linked Issue section says 'In…
Link an actual issue in the 'Linked Issue' section using 'Fixes #', or create one for this change. The template says outside contributors must link an issue. Also consider these fixes: (1) Clarify the Testing section. It says the lo…
Passed checks: 3 passed
Check name
Status
Explanation
Title check
The title names the two main changes: the description field inset and generation continuing after the picker closes. The changeset covers both, plus the avatar revision guard that supports the second …
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
The title names the two main changes: the description field inset and generation continuing after the picker closes. The changeset covers both, plus the avatar revision guard that supports the second change. The title is specific and scoped to the primary user-facing changes, though it is long at 104 characters.
Full details: Description check
Explanation
The description follows the template closely. It covers ELI5, What Changed, Why, Visual Proof, Testing, Performance, Risk, Review, and the upstream boundary checkbox. The Linked Issue section says 'Internal design request, no issue.' The template requires an actual linked issue, and the 'Fixes #' line is left blank. The Level is set to Medium. The AI Disclosure section is empty. The Performance section is complete. The Testing section is detailed, but it includes some unclear claims, such as a local test command that timed out. The Review section has dense, jargon-heavy wording. Overall the description is mostly complete, but the missing linked issue is a template requirement that is not met.
Resolution
Link an actual issue in the 'Linked Issue' section using 'Fixes #<number>', or create one for this change. The template says outside contributors must link an issue. Also consider these fixes: (1) Clarify the Testing section. It says the local three-suite command timed out and the changed-file gate produced no test results, so state which tests were actually run and passed. (2) Rewrite the Review and Testing prose in plainer sentences. (3) Confirm the AI Disclosure section, since it is blank and the template asks for model details if AI was used. (4) Confirm the Visual Proof images show before and after states, because the template asks for a before and after that can be switched. The current images show only the after state for several items.
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
generateThenClose() closes the picker before this spy is installed. The assertion at Line 799 cannot detect cancellation during closure. Install the spy inside the helper before Line 785, then return it to the test.
Review info
Run configuration
Source mode: Auto
Repository: Unavailable
Branch: Unavailable
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Repository UI
Review profile: CHILL
Plan: Advanced
Run ID: 1b86f780-e688-46e1-aa7f-da797932dd5e
Commits
Reviewing files that changed from the base of the PR and between 753a25b and 3cd111c.
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 2 remain after this review.
The textbox check confirms the picker reopens on Generate. It does not confirm that the failed run's note is still shown. Add an assertion for the timed-out note after the picker reopens, so the test checks the retained error named in its comment.
Review info
Run configuration
Source mode: Auto
Repository: Unavailable
Branch: Unavailable
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Repository UI
Review profile: CHILL
Plan: Advanced
Run ID: a8fb4cac-9407-46e5-95b3-3d9e4eae8507
Commits
Reviewing files that changed from the base of the PR and between 1d9ec38 and 63182dd.
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 4 remain after this review.
For best results, initiate chat on the files or code changes.
Analysis chain
Script executed:
#!/bin/bashset -u
files=$(fd --type f --fixed-strings 'BotPictureButton.test.tsx' .)if [ -z"$files" ];thenecho"Test file not found"exit 0
fiwhile IFS= read -r file;doecho"=== Outline: $file ==="
ast-grep outline "$file" --items all
echo"=== Source: $file ==="
cat -n "$file"done<<<"$files"echo"=== Commit summary and patch ==="
git show --format=fuller --stat ac48506 -- 2>&1
git show --format= --no-ext-diff ac48506 -- src/renderer/src/components/bots/BotPictureButton.test.tsx 2>&1
Length of output: 8747
@AmethystLiang Thanks! Commit ac48506 adds the assertion that the failure note appears after the picker reopens. I inspected the test but did not run it.
If you found this review helpful, would you consider giving us a shout-out on X?
Files skipped from review as they are similar to previous changes: 1
src/renderer/src/i18n/locales/en.json
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review.
…g generated
Rebased onto main's avatar outfits. An outfit-only pick now notes a choice in the
picture ledger and holds it open until its save is acknowledged, and the host bumps
avatarRevision on an outfit write, so a running Generate can no longer overwrite a
picked outfit. The color and outfit saves share main's useBotLookSave queue.
Also: the Generating tooltip stays controlled, "Close anytime" wraps inside the
tile, a failed Create no longer reopens New bot's picture popover, and Create's
picture handoff is one helper shared by New bot and Import.
…and a lost profile save no longer strands fresh uploads
A color or outfit pick made while a generated picture is uploading now sends the
mascot shown again, so the look wins whichever write the host takes first.
Before its bots are first listed, the host raises any record whose avatar revision is
behind its home's bot.json (a profile that lost its last save). A fresh read then
anchors a new Generate at the real revision, while a request made before the crash
is still refused.
* Remove group item chat filter
* Remove retired runtime catalog entries
* Fix phone group item refresh and paging
* Fix phone test array style
* Keep group asks fresh during phone refresh
* Clear departed group member reads
Rail buttons sat on a tight 32px pitch. A 12px gap puts each 28px button in a
40x40 cell, matching the right activity bar, and the overflow slot follows.
Co-authored-by: m4air <[email protected]>
)
* fix(agent-permissions): show permission descriptions as tooltips
Permission menus rendered a description line under every choice, which made
them tall. Rows are now one line; the description is a hoverable side tooltip
and always the row's accessible description. It renders inline on touch-only
screens, in narrow or zoomed windows, and on rows tapped in a mouse-opened
menu (first tap reveals, second selects). Disabled choices stay focusable so
their description can be read, and one Escape closes the tooltip and menu.
* fix(agent-permissions): comply with primitive style and test gates
* fix(agent-permissions): fit composer picker within zoomed viewport
* fix(agent-permissions): retain inherited permission row primitive
* fix(agent-permissions): constrain settings choices to viewport
…ion line (#48041)
* fix(items): read answers and drafts written with the pre-#47963 question line
* fix(items): prefer this build's question heads before older ones across all questions
* fix(items): a longer old question head keeps its line over a shorter current one
* perf(items): work out each ask's question heads once, and skip head matching for a reply whose label does not end the line
…ngs (#48040)
Replace English terms that were left inside Simplified Chinese values
(Chat UI, API key, API token, issue, merge request, Linear ticket, Agent,
SSH config and 17 one-off terms) with the Chinese term zh.json already
uses for the same thing elsewhere, so one feature no longer has two names
in the Chinese UI. Only catalog values in zh.json change.
Fixes#48042
Co-authored-by: Neil <[email protected]>
… presses across a feed drop (#47951)
Follow-up to #47774. Before Stop is sent, including from Retry, it is checked against the live dock: same party, same dispatch, not settled, and stoppable by the same rule the row renders with. Settled retries read "Already stopped". Held mouse, touch and key presses on Stop are cancelled by a feed loss during the press, and each click activates as the press that produced it. Stop and Clear draw an inset focus ring that stays visible at 360px. Focus on the failure line passes to the next line or the dock toggle.
…y stays flat (#48059)
* perf(browser): stream a server download's copy as binary frames with acks
Save to this computer read the file as base64 JSON replies, so desktop
main's heap swung by hundreds of MB of short-lived strings on a big copy.
The host now sends the file as binary frames on the stream's own socket,
from a fixed set of buffers, at most a 2 MiB window ahead of the desktop's
acks; the desktop writes each frame and acks it. Memory no longer depends
on file size, and the copy is about five times faster.
* fix(browser): mark copy frames, refuse odd-sized ones, stop with the server's transport
* fix(browser): give up on a copy whose file stops arriving for a minute
* fix(browser): stop a copy whose file changes in place; finish short reads
…ectable on iOS (#48068)
Item thread comment bodies, the item description and ask question text
rendered MobileMarkdown without rangeSelectable. Inside the OTA shell
(react-native-web), a paragraph Text with selectable=false gets
user-select:none, so a long press did nothing. These call sites now pass
rangeSelectable={INLINE_TEXT_SELECTION}, matching the native-chat
transcript. A native (non-shell) Android render gets false and keeps
main's block selection.
Fixes#48039
… are its reply (#47962)
* fix(bots): to stay silent a bot writes only NO_REPLY; any other words are its reply
* fix(bots): only a tool that answered whoever waits stands in for the reply; every quiet note names the marker
* fix(bots): a thread request already answered with bot reply needs only the marker; leave the signed-off wait prompt as it was
* fix(bots): item-only silence only when no thread waits, and silence drops a memory's status line
* fix(bots): an item comment's silence also waits for any chat or thread still owed an answer
* fix(bots): a silent turn whose answer stays in Orca may keep one owner note before NO_REPLY
Turns answering a Slack, GitHub, Linear or Discord thread stay exactly NO_REPLY.
* fix(bots): the Home Chat owner note holds only when the turn answers no outside message; mail silence also waits for chat
* feat(app-rail): rail destinations fill the whole page
With the experimental app rail on, Tasks, Automations, Artifacts, Skills
and Orca Mobile now fill the page beside the rail. The workspace list
collapses to zero width (its rows unmount; the saved open state and
width are never written), while the sidebar root stays in one keyed slot
so its dialogs, an unsaved Workspace details draft and the Workspace
Board keep their state across view switches.
On a rail page the sidebar toggle, Cmd+B, Open Workspace Board and the
Agent Dashboard shortcut return to Workspaces with the list showing,
then act. Settings keeps its current behavior.
Keyboard focus never drops to the page body: a page opened while a list
row had focus, or an overlay that closes back to a removed element,
hands focus to the page once it has loaded, unless something newer took
it. The titlebar controls keep focus when they move between the column
header and the page titlebar.
With the rail off, nothing changes.
* fix(app-rail): keep the hidden workspace list mounted on rail pages
A rail page used to unmount the workspace list rows. That dropped
unsaved edits in the list (the detected setup command, the Rename
group dialog), closed a row's open context menu under keyboard focus,
and made returning to Workspaces revalidate the Smart Sort order and
write it again.
The rows now stay mounted while a rail page hides the list: the list
keeps zero width and is inert and hidden from assistive technology.
Only collapsing the list yourself unmounts the rows, as before. Focus
inside the list when it hides moves into the page once it loads.
* fix(app-rail): keep the hidden workspace list out of keyboard handling
On a rail page the workspace list stays mounted but hidden, and two
keyboard paths still reached it:
- Its global shortcuts (focus worktree list, next/previous workspace,
collapse all projects) acted on the hidden rows, for example unfolding
Projects while Tasks stayed on screen. They now do nothing while a
rail page hides the list, and still work on Workspaces.
- Escape from a nested context-menu item (Copy > Path) left focus on the
page body, because the submenu is portaled apart from its menu. A
close now also counts when the last focused element left the DOM, so
focus moves into the page as it does for top-level items.
* fix(app-rail): recover focus only from a menu or dialog that owned it
Focus recovery on a rail page treated any focused element that had left
the page as stranded by the next overlay close. Clicking a control
outside an open, nonmodal menu could focus that control and remove it
before the menu reported its close, and focus then jumped into the
page.
Recovery now records which menus and dialogs own focus whenever focus
moves, including the parent menu of a portaled submenu, and acts on a
close only when the closing one owned it.
* perf(agent-cli-update): defer the startup CLI check and run at most three --version probes at once
* fix(agent-cli-update): give the update check a budget that covers queued version probes
* fix(agent-cli-update): cover the worst-case probe queue and let a failed check retry
…es, plugins, and settings (#48053)
Korean users saw English in the team-required update card and restart
dialog, the install-on-quit prompt, required-plugin warnings, the plugin
catalog's team labels, the Orca account console row, and the settings
that a team turns off (Relay, Computer Use, artifacts, development
folders, bots). These keys existed in en.json but not in ko.json.
Each value is inserted after its preceding en.json sibling so the diff
is additions only, and every value keeps the English placeholder set.
A theme port uses 포팅 버전 so it does not read as a network port (포트),
and botsOffByTeam uses 이 실행 to match its botsOff and botPaused siblings.
Fixes#48054
Co-authored-by: Neil <[email protected]>
…ocess (#47943)
* perf(ports): skip the Linux /proc fd walk when listening sockets are unchanged
The 30 s workspace port scan read every fd link of every process on the
machine to map listening sockets to pids. Reuse the last map while the set
of listening inodes and each owner's start time are unchanged; ownership
checks that authorize a kill still walk fresh.
* fix(ports): bound the Linux socket-owner cache to 10 scans and require our own sockets mapped
A socket handed to a child while its parent lives, or a root socket later
inherited by a user process, kept its inode and the cached owner. Walk again at
least every 10th scan and whenever one of our own sockets has no owner.
* fix(ports): revalidate cached Linux socket owners instead of trusting a live pid
A supervisor that handed its socket to a child and closed its copy stayed the
cached owner, so the port showed as external and its advertised URL was
dropped. On reuse, check that each cached owner still holds its socket and walk
processes started since the last walk, keeping the full walk's last-holder rule;
walk everything again after 10 scans or 5 minutes.
* perf(ports): list Linux socket owners with one ls in the port-scan worker
Replace the reuse cache with exact full-walk semantics: one ls -ln /proc/*/fd
in the port-scan worker lists every socket holder, and the owner is the last
holder in /proc's listing order, as the node walk picked. Falls back to the node
walk if the command fails.
* fix(ports): fall back to the node walk when the socket listing has no holders
* fix(ports): print only wanted socket holders from the Linux listing
Printing every socket fd could pass the worker's 2 MiB output limit on a large
machine, failing every scan into the main-thread walk. awk now prints only the
listener inodes plus a count of well-formed socket lines, which tells an
unreadable ls layout apart from listeners Orca can't see; holder lines must end
in ' -> socket:[N]'.
* fix(ports): retry a failed Linux socket listing every 10th scan instead of every scan
* fix(ports): keep the exact readlink walk for Linux kill and allow-list ownership checks
* fix(ports): stream one ls process through a worker-side filter for Linux socket owners
The sh | ls | awk pipeline left ls and awk running when a timeout or quit killed
sh, and awk's list search grew with sockets x listeners. The worker now execs a
single ls (LC_ALL=C), tracks it with the other scan children, and filters rows
line by line with a Set: only exact 11-field 'fd -> socket:[N]' rows count.
* fix(ports): run the Linux socket listing with only PATH and drop just an over-long line
TIME_STYLE or QUOTING_STYLE in Orca's environment changed ls's layout and
disabled the listing; an over-long path line split across chunks cleared the
current pid and lost that process's later sockets.
* fix(ports): list Linux fds with ls -q so a path with newlines can't forge a holder row
* fix(ports): ignore Linux socket holders that the /proc listing never saw
…the status bar, and the activity bar (#48057)
Add Korean translations for keys that were missing from ko.json, covering
skill replace/backup notices, shared Codex servers settings, usage status
bar rows, the activity bar reorder controls, and other recently added UI
strings, so Korean users no longer see English fallbacks there. Also add
the missing _one plural forms for counts.
Co-authored-by: Neil <[email protected]>
…erver downloads, and port forwarding (#48055)
Korean users saw English in Settings > Browser's "Clear cookies" row and
its confirmation dialog, the download and print notices of pages
streamed from a paired server, browser-tab open failures, the paired
server port-forward toasts, the SSH session-host detail, and the
terminal link popover's refusal message. These keys existed in en.json
but not in ko.json, so i18next fell back to English.
Each value is inserted after its preceding en.json sibling and keeps the
English placeholder set. The SSH port-forward toast names the Ports
panel ("포트 패널") so it points to where forwarding is done.
Fixes#48056
Co-authored-by: Neil <[email protected]>
…anaged copy from it (#45247)
* fix(codex): never write a WSL distro's Codex config; regenerate the managed copy from it
* fix(codex): treat mapped-drive and drvfs distro configs as the distro's, write the baseline atomically, and recover a held config before the history pass
* fix(codex): recognize the extended spelling of a mapped distro drive, and leave the baseline and history writers as on main
* chore: drop an unrelated lockfile change
* test(codex): an unchanged WSL regeneration leaves the managed config untouched
* fix(codex): drop a held-back conflict for a ~/.codex linked or mapped into a distro
* fix(codex): skip the promotion write when a linked ~/.codex folder can't be resolved
…d of refusing (#48067)
* fix(cli): save downloads without --out next to, not instead of, an older file of the same name
* fix(cli): name a nameless or path-like download by its id, without Windows-dropped trailing dots
…ive chat (#48038)
A completed Codex fileChange that touched several files was saved as one
headerless join under a "N files" path, and the client refused to name any
file from a count, so the turn showed no changed-files summary.
Each file of a multi-file change now gets its own diff --git section
(whole-file hunks for add/delete, rename destinations kept). The Diff call
carries body.paths, and a "N files" patch is summarized only when it arrives
whole with exactly N git-headed sections whose paths match. Larger patches,
header-unsafe names and older journals keep the raw "Edited N files" row.
Refs #48025
Co-authored-by: Neil <[email protected]>
Co-authored-by: bbingz <[email protected]>
Show layout-matched placeholders on the first checks and comments reads. Keep loaded results visible during refresh, distinguish unread from empty, and respect reduced motion.
…7911)
* perf(bots): keep settled linked workers' reads between item views
Item views and the usage-limit pass re-walked every linked Dispatch's
lineage on the main thread each read. Settled workers' reads are now kept
and dropped by the orchestration database's own row notices for any
Dispatch the walk read, so a refresh reads only running workers and
lineages written since.
* perf(bots): index a lineage's kept reads once, not per linked ref
* fix(bots): never keep a linked worker read whose Task or follow-ups couldn't be read
* perf(bots): keep only short reports with kept linked-worker reads
* fix(bots): batch insert lookups, copy kept values, and re-read hits a write dropped mid-read
* fix(bots): one status snapshot per linked-worker read, a report budget, and drops on another connection's writes
* fix(bots): keep only linked workers off a live pane, cap kept reports, and catch mid-read follow-ups
* perf(bots): validate kept linked workers with one fingerprint read per pass instead of tracking row events
* perf(bots): budget kept linked-worker reports, not entries, and skip long worker reads
* perf(bots): skip the fingerprint read when no write has landed since the last check
* fix(bots): drop a kept linked worker on its own Dispatch's notice, and check for writes after the fingerprint read
* fix(bots): drop kept linked workers on a deletion, copy reports only within the budget, and show reports written during a read
* fix(bots): re-read kept linked workers dropped during a read, keep finished workers after the reply, and allow long worktree paths
* fix(bots): drop kept linked workers on another connection's commit, and never restore one a failed re-read dropped
* fix(bots): re-check kept linked workers after each recovery read, not once
* fix(bots): re-check kept linked workers after a read awaits, keep only after the reply, and bound pending reports
* fix(bots): keep only plain follow-up chains, re-read a whole batch a write changed, and queue kept workers once
* fix(bots): re-check kept linked workers by fingerprint before a read replies, and never throw while keeping
* perf(bots): skip long terminal histories unparsed, and take keep slices off the queue's iterator
* fix(bots): read the database version once per linked-worker check
* fix(bots): check a linked-worker reply against the stamp its kept workers were checked at
…lled (#47262)
* fix(browser): restored tabs wait for the profile's extensions before their first load
* fix(browser): a navigation during the held first load keeps the restored back list
* fix(browser): hold navigations made during the first-load wait and replay the newest
* fix(browser): keep the held page loading after its stop; restore only onto an empty page
* fix(browser): queue loads asked for during the first-load wait instead of stopping them
* fix(browser): keep a queued load's request options; reject it when the page closes
* fix(browser): replay any queued load with options directly
* fix(browser): a held page always waits until its profile's extensions are in the session
* fix(browser): closing a held page ends its hold and settles queued loads
* fix(browser): a navigation started outside loadURL during the hold still supersedes it
* test(browser): a held first load starts nothing until ready; move it to its own module
* test(browser): settle before the negative check; cover the load-ended fallback
* fix(browser): record startup extension ids at attach, so page-start needs no session registry import
* test(browser): note why the fake page and session casts are sound
* fix(browser): bound the in-session wait; a held load's deadline counts from its release
* fix(browser): one presence listener per profile, ended by the give-up; Stop cancels a held load
* fix(browser): the desktop attach passes the extension wait in, so the orcad bundle doesn't pull in extension code
* fix(browser): Stop ends the hold and stops real loads; failed extension loads end the wait; keep only a wait that gave up
* fix(browser): Stop with nothing loading settles the page load; later waits skip failed extensions; a wait is shared per profile attach
* perf(browser): every startup load's end, skipped or cancelled too, ends the page wait; keyed startup set
* fix(browser): Stop on a held restore keeps its history; a cancelled route initialization stops waiting for extensions
* perf(browser): a page's extension wait ends when the page closes; goto reports the closed tab
* fix(browser): don't hold a route page's blank bootstrap, which must finish within its mount deadline
* fix(browser): route navigations wait for extensions too; the attach's load deadline counts from attach again
* fix(browser): a route navigation rechecks live authority after waiting for extensions
* perf(browser): a cancelled route navigation stops waiting for extensions and doesn't load
* fix(browser): loads after Stop still wait for extensions; an overtaken route navigation doesn't load
* fix(browser): after Stop the saved history goes back only once ready; a waiting route navigation yields to a newer one
* refactor(browser): defer a page's guest until its profile's extensions are ready, instead of holding its first load
As a browser restores tabs only after the profile's extensions load: desktop tabs get their attach
marker, and This-device pages mount, only once the page's session has started its extensions. The
first-load hold on an attached guest (loadURL/stop overrides, queued loads, Stop and history
handling, route navigation waits) is removed.
* fix(browser): a waiting tab attaches after a remount, shows loading, keeps an address entered meanwhile; registration waits extend only on timeout; a failed This-device creation releases its extensions
* fix(browser): registration waits cover a wait that ended in their window and keep listening; closing a waking page cancels its wake; the newest address wins; Stop is a no-op while waiting
* fix(browser): cap the extension wait at 5 s, inside the deadlines around page creation; a page opened at the cap loads again once if its first load stalled; a closed waiting tab doesn't re-prepare
* fix(browser): the late-start retry keeps only live pages, yields to Stop and newer navigations, and is desktop-only; Stop during the wait keeps the page closed until Reload
* fix(browser): the late retry ends once the extensions are in the session and reloads a restored entry; Stop's marker yields to Reload or a new address
* perf(browser): no partition lookup with extensions off or for attached profiles; a refused This-device mount releases its extensions; any Reload undoes a waiting Stop; Stop-then-type reuses the deferred attach
* fix(browser): trim to the desktop defer: no Stop state while waiting, This-device keeps main's 3 s wait at navigation, and only restoring tabs load again
* fix(browser): a restoring tab loads again only if an extension loaded while its first request was in flight; no validation or Stop while a tab waits
* fix(browser): This-device blank first pages wait for extensions again (at most 3 s, as on main); no extra loading update before a tab's page exists
* fix(browser): retry only after the load that resets a session's loaders; an address typed during the wait opens without a second wait; partition lookup by index
* perf(browser): the late-retry extension listener is on only while a page still waits on it
* perf(browser): a routed page's session finds its source profile by its route, without scanning saved profiles
* refactor(browser): drop the one-time retry past the extension wait's bound; a stalled page keeps the existing notice and manual reload
* perf(browser): the extension presence observer ends with the startup load or the wait's bound
Static analysis fails only on browser-session-registry.ts (301 lines), which already fails on main since #47262 and isn't touched by this PR. CI otherwise green; code review and UX-I passed on this head.
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
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.
ELI5
In a bot's picture picker, the "Describe your bot's look…" box ran right up to the popover's edges. It now sits inside them with even spacing.
Making a picture takes a while, and before this change closing the picker threw the picture away. Now you can close the picker and keep working. The bot's picture shows a spinner, and the new picture is put in place when it's ready.
What Changed
Field inset (visual only)
Generation keeps going after the picker closes
How it works
avatarRevision, bumped on every picture, outfit or color write. Uploading a picture can name the revision it expects (expectedAvatarRevision), and the host refuses withbot_avatar_changedif the picture changed in the meantime. The write queue compares the saved revision and its recovery epoch. Uncertain records preserve the PNG and manifest. An explicit choice can repair a verified home and invalidate earlier tokens. A Generate reads its own bot home before entering the write queue to commit a still-current snapshot. A new capability,bots.avatar-revision.v3, advertises it.avatar-generation-requests.ts), not in the picker's component state, so they outlive the picker. Only the store uploads a generated picture to an existing bot, and it claims the request before uploading so it can upload only once. A small per-bot ledger (bot-picture-ops.ts) records picks, saves and intakes, so the store knows which revision to expect and when a choice was made after Generate. The anchor advances only across consecutive acknowledged local writes. A gap preserves the external editor’s choice.abortWhenOwnerDocumentEndscleanup still cancels the run, so the IPC is unchanged.Why
Asked for in design review: inset the field, then "you need to have a cue that user can bg it though". A spinner on the avatar plus a short "Close anytime" line was the smallest cue that tells you closing is safe without adding a new control. Checked against how comparable products handle this.
The revision check exists because an automatic upload can otherwise overwrite a picture the user picked while the run was going, from this window, another window or a paired client. Comparing the picture itself isn't enough: switching A → B → A looks unchanged but is a newer choice.
Linked Issue
Internal design request, no issue.
Visual Proof
Field inset, picker at its narrowest (320px), empty (light top, dark bottom):
Long description (six lines, the most before it scrolls), in the original implementation. The rebased picker shows its color and outfit note only on the mascot face:
Tile while generating, with "Close anytime":
Bot settings / panel header, picker closed mid-run (overlay, spinner and tooltip):
Bot row after leaving its settings mid-run:
New bot, picker closed mid-run (spinner in the badge):
New bot, picture finished while closed and put in place on its own:
Failure after leaving the bot's settings (the same toast shows after Create):
Testing
Host tests cover stale upload refusal after an outfit-only change, concurrent upload ordering, and fresh versus stale requests after a lost profile save.
Renderer tests cover generation eligibility, draft handoff, and the visible mascot and outfit after an upload commits first.
At
32aa5baa5a6d, Chromium interactions covered both themes, closing and reopening the picker, the progress tooltip, and keyboard cancellation. A separate renderer run reopened the picker directly on the mascot and selected a different outfit or the current one, with each ordering of a simulated host upload and an outfit save. All four retained the chosen outfit on the mascot.At
b7a75d5682f7, hidden Chromium input exercised two editors sharing a real BotController and temporary bot homes. Saved PNG bytes, bot.json, the displayed avatar and the Generate slot were checked across a competing paste, outfit or color change, local acknowledgement and successive Generate attempts.At
795059b78826, a before-and-after production controller replay verified that refusing Generate preserved the exact damaged manifest, manual PNG and stale profile. Explicit repair rotated the history identifier and rejected the prior token at the same numeric revision. Coherent legacy zero and complete positive-revision recovery both passed.On the integrated C5 candidate, a conflicting revisionless home preserved the complete manifest and PNG. Pause succeeded on damaged homes, explicit picks repaired verified homes, and an old token failed even at the same numeric revision. Listing, B’s preparation, a B upload and an A upload all completed while A’s prior home read remained suspended. After release, both new PNGs and revisions remained intact.
The actual New bot dialog retained the draft in all four failed Create and retry sequences. A three-request sequence saved the third picture despite a rejected second request and either a lost first acknowledgement or a failed catalog refresh.
Refused and null legacy Create each preserved both a running draft and a result that landed during Create. All four cases retried with zero automatic uploads.
A rolled-back full profile recovered from a valid newer home. An unreadable home, malformed JSON and invalid revision refused stale uploads before changing bytes. With one home read held, 1, 8 and 32 lagging records each took one list collection pass and zero home reads.
The local three-suite command timed out without suite results. The RPC parameter catalog verification and commit hooks passed. The local changed-file gate waited for the shared runner and produced no test results.
The pristine manifest matches the legacy field set. Configured initial looks and explicit clears in revisioned homes both survive serialization.
Platforms: macOS (fixtures and unit tests). The change is renderer and bot-host only, with no platform-specific paths.
I manually tested these changes locally
Automated tests added/updated, or explained why not below
Every added test fails without this change and avoids the test anti-patterns
Performance
BotAvatarreads one boolean from the request store viauseSyncExternalStore. It re-renders only when that boolean flips, at the start and end of a run.bot.jsonfor each bot update or avatar upload inside its existing write queue. Generate reads the selected bot’s revision once at the start. Cold and warm lists do zero home reads for avatar repair.Risk
Level: Medium.
bots.avatar-revision.v3never get an automatic upload. The picture waits in its slot for an explicit pick, and a run left after closing settings ends with the failure toast.avatarRevisionis an optional field. Older builds ignore it. Matching legacy profile and home picture data establish revision zero. Ambiguous records require an explicit repair.avatarRevisionfield inbot.json.Review
Eng - Reviewer's C4 accepted the renderer race fixes and first-list readiness and required three corrections to host recovery and preparation. C5 closed verified-owner manual recovery and cross-bot preparation at
413b828fb424. Eng - Reviewer passed C6 at795059b78826and closed the remaining damaged-history finding. All 24 CI unit shards passed, including the 10 controller revision tests on shard 14. E2E was skipped. CI run UX Designer accepted the recovery behavior and both closed-picker screenshots after failed Create. The renderer and English catalog contain both requested error strings.The proof used two headless Chromium pages and a production bot controller on macOS. The fixture supplied agent output, transport, and catalog notifications. Windows, Linux, a packaged Electron app, and a paired remote server were outside this local run. Capable hosts compare revisions in their write queue. Incapable hosts save a generated picture only through an explicit selection.
Agent skill upstream boundary