Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
188 commits
Select commit Hold shift + click to select a range
d6b7756
fix(browser): say sign-ins, not cookies, in the import and data texts…
Hona Nov 20, 2026
98b11bc
fix(browser): show each site's icon in its tab (#65094)
Hona Nov 20, 2026
701eff9
test(browser): measure verifier handle growth after the process settl…
Hona Nov 20, 2026
2c4352b
fix(browser): log why a page's process ended (#65096)
Hona Nov 20, 2026
12c4cfa
fix(browser): shorten the browser settings texts (#65101)
Hona Nov 20, 2026
5fe4c38
fix(browser): open a middle-clicked link in a new tab (#65091)
Hona Nov 20, 2026
92d35f8
fix(session-ui): keep execute details padding visible when code and o…
opencode-agent[bot] Nov 20, 2026
20f6dda
fix(util): include file tail in sampledChecksum (#65114)
neriousy Nov 20, 2026
c5ba0ee
test(app): wait for focus rescue before selecting text in the quote a…
Hona Nov 20, 2026
c18c923
fix(core): skip selecting the agent a session already runs as (#65122)
neriousy Nov 20, 2026
f8738a1
fix(process-daemon): keep listing terminals while one is terminated (…
neriousy Nov 20, 2026
7aed488
fix(core): preserve yaml flow collections during frontmatter repair (…
neriousy Nov 20, 2026
f00f28d
fix(core): preserve legacy variant in markdown commands (#65118)
neriousy Nov 20, 2026
10e26d9
fix(ui): show text field and line comment focus in high contrast mode…
usrnk1 Nov 20, 2026
f0df607
fix(app): recover child session permissions after reconnect (#65120)
neriousy Nov 20, 2026
13efefc
fix(app): go back and forward with the mouse buttons on desktop (#65129)
neriousy Nov 20, 2026
8b36735
fix(install): stream curl download via stdout for confined curl (#65132)
neriousy Nov 20, 2026
bfee96a
fix(browser): confirm before clearing browsing data (#65124)
Hona Nov 20, 2026
80d7c17
feat(browser): open a link's new tab beside the tab it came from (#65…
Hona Nov 20, 2026
85951cb
fix(session-ui): show subagent status as a colored bar and word in th…
arvsrn Nov 20, 2026
22ecda2
fix(browser): show browser profiles inline and tidy settings copy (#6…
usrnk1 Nov 20, 2026
e440d29
fix(app): stop buttons from flashing dark on keyboard focus (#65177)
usrnk1 Nov 20, 2026
b958fc8
fix(app): keep the pinned group name field inside its menu without a …
usrnk1 Nov 20, 2026
2002222
feat(automation): give automation tools their own namespace (#65001)
rekram1-node Nov 20, 2026
8e1c6a4
feat(core): session_search and session_read tools behind sqlite_fts (…
rekram1-node Nov 20, 2026
b7f0b90
feat(automation): run a fixed shell command as an automation action (…
rekram1-node Nov 20, 2026
bf006b5
fix(app): keep the model picker responsive with large catalogs (#65189)
neriousy Nov 20, 2026
e47d8fe
test(gui-plugins): wait for Electron extension readiness (#65191)
rekram1-node Nov 20, 2026
6b66105
fix(app): show the new session's target worktree in the header while …
usrnk1 Nov 20, 2026
7afef17
fix(app): draw the whole timeline focus ring with rounded corners (#6…
usrnk1 Nov 20, 2026
55c6827
fix(core): skip home memory maintenance on first run and archive its …
thdxr Nov 20, 2026
ef68b7e
feat(app): open a Home session in the background from its menu (#65209)
neriousy Nov 20, 2026
cc74b9a
chore(codemode): use psychoscript 0.2.1 through psychoscript/effect (…
jlongster Nov 20, 2026
1607d4e
feat(app): split Open and Open in background in the Home session menu…
neriousy Nov 20, 2026
c1a6e6f
fix(ui): keep the composer ring hidden when a click on Steer or Remov…
usrnk1 Nov 20, 2026
7f90d8d
fix(app): keep the side panel's add button and review toggle in tab o…
usrnk1 Nov 20, 2026
810afd2
docs(ecosystem): point Tavily plugin entry at @tavily/opencode-plugin…
guy-hartstein Nov 20, 2026
4390284
fix(core): put built-ins in Code Mode for every model under full_code…
rekram1-node Nov 20, 2026
d9eb208
feat(core): messages over the machine link (#65099)
kitlangton Nov 20, 2026
4cca18d
feat(core): load a per-project overlay config directory behind projec…
thdxr Nov 20, 2026
07c2502
refactor(session-ui): derive timeline summaries from facts (#65012)
jlongster Nov 20, 2026
0f0d168
refactor(automation): trim shell action checks and the unattended den…
rekram1-node Nov 20, 2026
fe8def6
refactor(session-ui): place timeline entries from facts (#65025)
jlongster Nov 20, 2026
f502a6e
fix(app): fix clipped and misleading focus rings in the timeline and …
usrnk1 Nov 20, 2026
4122af0
fix(core): authorize Bun Glob scans as reads (#65255)
rekram1-node Nov 20, 2026
504a7b3
fix(cli): show help when the directory argument doesn't exist (#65262)
opencode-agent[bot] Nov 20, 2026
8a1501c
feat(codemode): show file diffs from a script below the execute block…
jlongster Nov 20, 2026
3bc82a1
feat(app): send browser, file and review comments to the session with…
usrnk1 Nov 20, 2026
ac548ed
feat(tui): add /login and /auth as aliases for /connect (#65265)
opencode-agent[bot] Nov 20, 2026
6f9d6cf
feat(server): endpoint for a machine's link (#65259)
kitlangton Nov 20, 2026
e86058a
feat(codemode): show a script's diffs while it runs (#65247)
jlongster Nov 20, 2026
1f92618
feat(automation): give scheduled code the session's Code Mode tools (…
rekram1-node Nov 20, 2026
f691e44
fix(session-ui): space a script's diff cards in the old timeline (#65…
jlongster Nov 20, 2026
a5fc5fd
feat(codemode): add timeout and background to execute behind full_cod…
jlongster Nov 20, 2026
494e8b6
fix(ui): keep focus on a focused tabindex=-1 panel when the page chan…
opencodejr[bot] Nov 20, 2026
b9a60d9
fix(app): keep tab groups stable when closing a tab (#65165)
Hona Nov 20, 2026
32330f5
feat(cli): add, list and remove machines (#65268)
kitlangton Nov 20, 2026
f670a07
feat(cli): add hidden login shortcut for auth login (#65263)
opencode-agent[bot] Nov 20, 2026
ddb3817
fix(core): prefer standard model offerings by default (#65280)
rekram1-node Nov 20, 2026
ab0e644
fix(core): watch PRs and pushes again after the shell exitCode rename…
rekram1-node Nov 20, 2026
bda12b5
feat(mcp): negotiate the newest protocol by default (#65282)
rekram1-node Nov 21, 2026
613ee72
test: fix Windows automation and Electron unit failures (#65286)
rekram1-node Nov 21, 2026
58f0af7
fix(ai): replay undeclared tool call names in provider-safe form (#65…
rekram1-node Nov 21, 2026
db2d889
feat(core): auto-update @latest, range and Git branch plugins (#65052)
rekram1-node Nov 21, 2026
6ab27d6
fix: restore dev CI (#65302)
rekram1-node Nov 21, 2026
80f41d7
fix(app): keep foreground Code Mode scripts out of the background pil…
opencode-agent[bot] Nov 21, 2026
b5424af
fix(core): machine review fixes (#65295)
kitlangton Nov 21, 2026
cb82da7
feat(core): replace the automations flag with an automations config k…
rekram1-node Nov 21, 2026
09bfa60
feat(core): enable session full-text search in dev builds (#65300)
rekram1-node Nov 21, 2026
b83ea51
fix(app): keep the background pill's rows in place (#65312)
Hona Nov 21, 2026
656c273
fix: fix Windows MCP pool and review toggle CI failures (#65308)
rekram1-node Nov 21, 2026
3441156
fix(browser): keep the pane's tabs unless the person or the agent clo…
Hona Nov 21, 2026
1bd37e7
fix(browser): keep every open tab in the strip (#65322)
Hona Nov 21, 2026
0811b42
fix(app): keep an open session's side tabs when old sessions are forg…
Hona Nov 21, 2026
68c0215
test(browser): wait for the menu to return focus before submitting th…
Hona Nov 21, 2026
a4b7cc9
test(browser): wait for the menu's first row before End (#65336)
Hona Nov 21, 2026
7f513b1
feat(desktop): show session status on Windows taskbar progress bar (#…
Hona Nov 21, 2026
46f56ea
fix(browser): copy sign-ins to a remote server's pages without stalli…
Hona Nov 21, 2026
b3b3000
fix(cli): machine commands accept --server (#65340)
kitlangton Nov 21, 2026
cfbf3f7
feat(core): accept machine links over iroh (#65341)
kitlangton Nov 21, 2026
f8d34e1
fix(core): clearer errors for machine paths (#65346)
kitlangton Nov 21, 2026
cfb1b4a
feat(cli): show how machines connect (#65347)
kitlangton Nov 21, 2026
5ca87b9
feat(core): machine.list tool in Code Mode (#65349)
kitlangton Nov 21, 2026
44593c5
feat(core): a paired machine needs no approval (#65356)
kitlangton Nov 21, 2026
f05c0fd
feat(desktop): open in Windows Terminal and list only installed apps …
Hona Nov 21, 2026
844a6aa
feat(desktop): flash the Windows taskbar button for requests that wai…
Hona Nov 21, 2026
edacc86
feat(desktop): show a count badge for sessions that need you on the W…
Hona Nov 21, 2026
dcb24c7
fix(core): shell tool's structured result says why a command has no e…
kitlangton Nov 21, 2026
b310a05
fix(desktop): open projects and new sessions from opencode:// links a…
Hona Nov 21, 2026
3aff591
fix(desktop): reopen snapped, moved and minimized windows where they …
Hona Nov 21, 2026
32ae019
fix(desktop): resync server event streams after Windows resumes from …
Hona Nov 21, 2026
ba5bbef
fix(desktop): draw the Windows caption buttons in the contrast theme'…
Hona Nov 21, 2026
a61f267
docs(console): document embedding models (#65402)
vimtor Nov 21, 2026
204af94
feat(app): fold tall file diffs in the timeline (#65329)
Tarquinen Nov 21, 2026
b00b733
feat(desktop): add New Session and New Window to the Windows jump lis…
Hona Nov 21, 2026
176db8d
feat(desktop): drag files from the file tree into other Windows apps …
Hona Nov 21, 2026
0bc9ccf
feat(desktop): say what Windows toasts ask and take them back once ha…
Hona Nov 21, 2026
2ae1910
fix(core): record top-level Code Mode tool calls as execute programs …
rekram1-node Nov 21, 2026
889ab11
feat(app): archive the open session with ⌘⇧S (#65428)
opencode-agent[bot] Nov 21, 2026
5a4f3bc
feat(core): processes on a machine take input and keep errors separat…
kitlangton Nov 21, 2026
e31eb1e
perf(core): faster byte conversion when sending to a machine over Iro…
kitlangton Nov 21, 2026
375f654
fix(desktop): close the oldest Windows toast when the cap evicts it (…
Hona Nov 21, 2026
e8b8ebd
refactor(core): one function for the working directory (#65445)
kitlangton Nov 21, 2026
93a1ed0
docs(site): document the Go usage endpoint (#65455)
vimtor Nov 21, 2026
4d4a95a
refactor(core): machine path syntax lives in one module (#65446)
kitlangton Nov 21, 2026
55b127b
fix(desktop): remember the first window as focused when it opens focu…
Hona Nov 21, 2026
8bf0903
feat: connect OpenCode Go through the OpenCode connection (#65466)
thdxr Nov 21, 2026
cd5752f
docs(console): show 60% discount for GLM 5.3 and DeepSeek V4.1 Flash …
fwang Nov 21, 2026
6531f17
docs: add enterprise page with policy examples
thdxr Nov 21, 2026
291c51b
fix(core): ask permission for shell commands the scanner can't analyz…
rekram1-node Nov 21, 2026
9a2f16d
test(core): remove a duplicate Agent import (#65487)
rekram1-node Nov 21, 2026
6b1df0c
feat(cli-rs): add the native CLI and TUI (#63477)
simonklee Nov 21, 2026
0663368
fix(session-ui): show the folder a search or listing ran in, not its …
Hona Nov 21, 2026
4c7ef3e
fix(codemode): show pinned tools' full descriptions in the catalog (#…
rekram1-node Nov 21, 2026
d03cb4a
refactor(core): ask an environment what it can do (#65452)
kitlangton Nov 22, 2026
3871408
feat(core): list voice models from models.dev (#65491)
Tarquinen Nov 22, 2026
3428394
feat(app): start voice with the newest GPT-Live model the server list…
Tarquinen Nov 22, 2026
942af1f
refactor(core): a seam for commands that outlive the server (#65449)
kitlangton Nov 22, 2026
d02b62d
test(app): follow the OpenCode rename and Go-through-OpenCode connect…
opencodejr[bot] Nov 22, 2026
73a0eae
refactor(core): the command seam names its own types (#65508)
kitlangton Nov 22, 2026
5756d59
fix(core): put small fields before large output in tool results (#65513)
rekram1-node Nov 22, 2026
1645a8a
feat(mcp): follow the MCP Events beta for push delivery (#65271)
rekram1-node Nov 22, 2026
5310e42
fix(core): ask to reconnect ChatGPT when its refresh token is rejecte…
hearnadam Nov 22, 2026
ee5fe34
feat(data): add new models section and yesterday leaderboard (#65541)
fwang Nov 22, 2026
1a215a4
feat(data): weekly view for bar charts (#65307)
adamdotdevin Nov 22, 2026
71cd8c0
docs(go): add LongCat 2.5, deprecate LongCat 2.0 and LongCat 2.5 Free…
opencode-agent[bot] Nov 22, 2026
10144b5
docs: end GLM 5.3 Go promo note (#65570)
MrMushrooooom Nov 22, 2026
e1cffae
feat(data): open bar charts on daily (#65577)
adamdotdevin Nov 22, 2026
8a836dd
fix(core): tell the agent when watch updates stop waking it (#65562)
adamdotdevin Nov 22, 2026
f3aef0b
fix(data): open bar charts on the daily view (#65581)
thdxr Nov 22, 2026
43b1015
feat(core): read the ChatGPT plan model lists from models.dev (#65579)
rekram1-node Nov 22, 2026
6d978e2
test(cli-rs): add hot-path perf baselines and fix flaky tests (#65592)
simonklee Nov 22, 2026
d5452df
refactor(cli-rs): keep store state in typed per-session records (#65593)
simonklee Nov 22, 2026
43d60f4
refactor(cli-rs): stop per-frame and per-keystroke rebuilds in the TU…
simonklee Nov 22, 2026
33d22fe
docs(console): add Jev 1.14 to Zen models (#65597)
opencode-agent[bot] Nov 22, 2026
62d07aa
refactor(cli-rs): match tools and events by type, not by string (#65595)
simonklee Nov 22, 2026
13b86ac
fix(nix): update node_modules hashes (#65598)
rekram1-node Nov 22, 2026
d9dacaf
chore: update nix node_modules hashes (#60957)
github-actions[bot] Nov 22, 2026
9aaa330
refactor(core): handle misplaced tool calls in one place, with notes …
rekram1-node Nov 22, 2026
44ef8ce
refactor(cli-rs): begin and complete store requests over plain data (…
simonklee Nov 22, 2026
2ae15f2
refactor(cli-rs): own the store on the UI thread (#65608)
simonklee Nov 22, 2026
8ba4445
refactor(cli-rs): apply streamed deltas borrowed from their JSON (#65…
simonklee Nov 22, 2026
95d52c4
docs(console): drop free models from the deprecated models table (#65…
opencode-agent[bot] Nov 22, 2026
cf2d028
refactor(core): read environment facts in file access, shell and sear…
kitlangton Nov 22, 2026
4332e24
perf(core): ramp chunk size when seeking large files in read (#65611)
kitlangton Nov 22, 2026
a946e84
fix(desktop): isolate local Windows AppUserModelID from installed cha…
Hona Nov 22, 2026
030e8d7
fix(app): list drafts in the inbox sidebar (#65525)
hearnadam Nov 22, 2026
23fd3da
fix(session-ui): show Windows tool paths relative to the project (#65…
Hona Nov 23, 2026
f55e257
perf(app): keep the background activity menu smooth with many subagen…
Hona Nov 23, 2026
361bed5
fix(session-ui): light the whole Compacted label on hover (#65644)
Hona Nov 23, 2026
bab0d04
fix(desktop): keep sites in the browser off the taskbar badge (#65646)
Hona Nov 23, 2026
04a1058
feat(core): turn on video generation by default (#65664)
rekram1-node Nov 23, 2026
562e55a
fix(core): skip an oversized MCP event instead of pausing its watch (…
rekram1-node Nov 23, 2026
13671da
fix(core): pin websearch in the Code Mode catalog (#65687)
opencode-agent[bot] Nov 23, 2026
7b70422
refactor(core): rename the media tools to generate_image and generate…
rekram1-node Nov 23, 2026
c6df161
chore(perf): bench with strobe 0.44.1 (#65691)
Hona Nov 23, 2026
b3f233c
fix(app): open ~ file links in the server's home folder (#65689)
rekram1-node Nov 23, 2026
512d2f3
perf(ui): bake the activity spinner into a 90 fps APNG (#65693)
Hona Nov 23, 2026
f113ec3
refactor(core): rename mcp/event-errors.ts to event-stream.ts (#65695)
rekram1-node Nov 23, 2026
6622d61
fix(app): eliminate model picker layout thrash on open, scroll, and s…
Hona Nov 23, 2026
d84e1d7
fix(session-ui): open a group of long Code Mode scripts without freez…
Hona Nov 23, 2026
18be128
fix(app): remove the focus rings around the timeline and composer (#6…
Hona Nov 23, 2026
406fd32
docs: add the v2.3.1 and v2.3.2 changelog entries to dev (#65701)
rekram1-node Nov 23, 2026
735f272
fix(core): hold event watches like timers while automations are off (…
rekram1-node Nov 23, 2026
b705c44
fix(app): show a file's whole diff when its accordion opens (#65703)
Hona Nov 23, 2026
9b1cdf0
fix(desktop): put the comment button back in the browser bar (#65707)
Hona Nov 23, 2026
8bae58e
feat(core): add Claude Agent as a web search provider (#65704)
levtechs Nov 23, 2026
70c7f45
fix: update Feishu community link (#65711)
heimoshuiyu Nov 23, 2026
2720b4b
feat(app): support key chords in shortcuts (#64395)
Brendonovich Nov 23, 2026
8c0be71
fix(core): delete blobs a week after they were written (#65671)
rekram1-node Nov 23, 2026
825986a
fix(core): name the shell in the shell tool's Code Mode description (…
rekram1-node Nov 23, 2026
3b38f3a
fix(ai): flatten tool namespaces once, before provider adapters (#65621)
rekram1-node Nov 23, 2026
b575c1f
feat(core): add a Code Mode tool that interrupts a session and everyt…
rekram1-node Nov 23, 2026
45aca07
fix(browser): open the browser in a project its server has only just …
Hona Nov 23, 2026
d3abc67
fix(ai): flatten xAI compaction requests like every step (#65726)
rekram1-node Nov 23, 2026
571619b
feat(core): call the OpenCode API from Code Mode with opencode:// fet…
rekram1-node Nov 23, 2026
331010a
fix(app): hide OpenCode Go from Settings popular providers (#65740)
opencode-agent[bot] Nov 23, 2026
609e4bb
test(app): save a Go key before connecting OpenCode Go from Settings …
Hona Nov 23, 2026
1906056
data: treat hungerg as a stealth model (#65750)
opencode-agent[bot] Nov 23, 2026
7edab78
feat: offer a model's service tiers as a speed in the TUI and desktop…
vimtor Nov 23, 2026
26f4041
feat(plugin): let plugins create, list and delete automations (#65747)
vimtor Nov 23, 2026
d6379ff
release: v2.4.0 (#65753)
github-actions[bot] Nov 23, 2026
d284e7c
fix(app): show the selected layout card's check in the accent blue (#…
usrnk1 Nov 23, 2026
354e4a0
chore(sync): merge upstream dev d284e7ce17
cursoragent Nov 23, 2026
d6b171a
fix(core): keep fork identity on upstream v2.4.0 tools and CLI
cursoragent Nov 23, 2026
73b016a
chore(hygiene): allowlist the RFC 6455 sample WebSocket key
cursoragent Nov 23, 2026
096586b
chore(release): prepare v2.4.0-shuv.1
cursoragent Nov 23, 2026
d63ea5c
docs(sync): audit upstream v2.4.0 sync through d284e7ce17
cursoragent Nov 23, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
15 changes: 15 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,21 @@ packages/protocol/openapi.json linguist-generated
packages/client/src/promise/generated/** linguist-generated
packages/client/src/effect/generated/** linguist-generated
packages/client/src/effect/api/** linguist-generated
# cli-rs: parity recordings and the files `script/gen` writes.
packages/cli-rs/parity/fixtures/** linguist-generated
packages/cli-rs/assets/queries/** linguist-generated
packages/cli-rs/crates/acp/src/permission/structured_patch.json linguist-generated
packages/cli-rs/crates/api-types/src/types.rs linguist-generated
packages/cli-rs/crates/api/src/generated/** linguist-generated
packages/cli-rs/crates/cli/src/run/mime.rs linguist-generated
packages/cli-rs/crates/cli/tests/fixtures/** linguist-generated
packages/cli-rs/crates/local/src/generated/** linguist-generated
packages/cli-rs/crates/mermaid/src/core/entities.rs linguist-generated
packages/cli-rs/crates/mermaid/src/core/wide.rs linguist-generated
packages/cli-rs/crates/ui/src/fuzzy/accents.rs linguist-generated
packages/cli-rs/crates/ui/src/keymap/generated.rs linguist-generated
packages/cli-rs/crates/ui/src/theme/generated/** linguist-generated
packages/cli-rs/crates/util/fixtures/time.tsv linguist-generated
packages/core/src/**/*.txt text eol=lf
packages/httpapi-codegen/test/generated/*.ts text eol=lf
# The site tests compare source text and humans.txt byte for byte, so Windows checkouts keep LF.
Expand Down
7 changes: 5 additions & 2 deletions .gitleaks.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,11 @@ paths = [
# api_message_id + literal REDACTED (not credentials).
'''^packages/core/test/plugin/provider/claude\-agent/fixtures/recordings/.*\.jsonl$''',
]
# Upstream services/update verifies this public Cloudflare Access JWT audience.
# It is an application identifier, not a token, signing key or credential.
regexes = [
# Upstream services/update verifies this public Cloudflare Access JWT audience.
# It is an application identifier, not a token, signing key or credential.
'''^d369a93ad5ce8cf96eebe30620488dd2537427c92fed439c310288832a282987$''',
# RFC 6455 section 1.3 sample Sec-WebSocket-Key nonce ("the sample nonce"), used by
# upstream v2.4.0 machine-link handshake tests (packages/server/test/machine-link.test.ts).
'''^dGhlIHNhbXBsZSBub25jZQ==$''',
]
16 changes: 7 additions & 9 deletions .opencode/skills/focus-states/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Use one default ring when someone navigates focus to a control, not when they cl

## The ring

- Use `:focus-visible` for the ring. Don’t use `:focus` to decide whether to show it. The only exception is a custom field that combines `:focus` with its own ring state, as the composer and Home search do (see Text fields). `base.css` supplies `outline: 2px solid var(--v2-border-border-focus); outline-offset: 2px` and a 4px radius for links.
- Use `:focus-visible` for the ring. Don’t use `:focus` to decide whether to show it. `base.css` supplies `outline: 2px solid var(--v2-border-border-focus); outline-offset: 2px` and a 4px radius for links.
- Offset: `2px` outward by default. `-2px` inset for full-width rows and for controls flush against an edge that clips or scrolls (segmented items, split buttons, titlebar buttons, clear buttons). No other offsets.
- Follow the control’s radius; give a square text action or link 4px where appropriate. Use a wrapper with `:has(> trigger:focus-visible)` when the wrapper owns the visible shape or the trigger’s ring would clip, as with tabs and Settings project cards.
- Outline only. Don't draw focus with `box-shadow`: Windows High Contrast removes shadows, so the ring disappears, and shadow rings looked different from every other ring.
Expand All @@ -18,15 +18,13 @@ Use one default ring when someone navigates focus to a control, not when they cl
- Inline rename inputs rely on the caret and editing state. The timeline's Jump to latest stays in the Tab order with the shared ring, since it's the only quick way back down from the keyboard; its container is `inert` while it's hidden. Loading alone doesn’t add a ring. If a busy button keeps keyboard focus, keep the ring and show the busy state separately with `aria-busy`, a disabled state, or loading text; the ring alone doesn’t say whether the button can be activated.
- These ring rules do not replace normal field borders or validation feedback. Those can respond to click focus and have their own inset treatment.

## Text fields
## Text fields and scroll areas

Editable fields can match `:focus-visible` after a click, so fields with a custom frame ring (the composer and Home search) decide when focus arrives. Use `packages/ui/src/context/field-focus.tsx`, not a global input tracker.
Chromium matches `:focus-visible` on every focused text field, and on anything that has focus once a key is pressed. A ring on a large surface then shows after a click, when the app moves focus there, and on returning to the window.

- Ring by default. Suppress the ring for direct pointer focus and for the composer’s explicit initial autofocus when a session or draft opens, including when it was opened with the keyboard.
- Tab, shortcuts like Find, and assistive technology moving DOM focus show the ring. Moving a screen reader’s reading cursor alone does not move DOM focus.
- When a dialog returns focus to a custom field, `packages/ui/src/context/dialog.tsx` restores the field's own ring state; ordinary controls use the browser's `:focus-visible` state. The overlay rules below apply.
- A `pointerdown` inside a field that already shows the ring clears it immediately; no new focus event fires. Typing never changes the decision, and blur clears it.
- A click shows the field's normal focused border or background and the caret, with no ring.
- A text field never draws the ring, the composer and Home search included. Focus shows as the caret and the field's focused border or background. Don't add ring state or pointer tracking to a field.
- A scroll area (the timeline, Home's list) takes focus so the keyboard can scroll it, and draws no ring. Show focus on the items inside it instead.
- Moving a screen reader’s reading cursor alone does not move DOM focus.

## Rows

Expand Down Expand Up @@ -63,7 +61,7 @@ Editable fields can match `:focus-visible` after a click, so fields with a custo
- Follow logical reading and interaction order, including in RTL. Fix DOM order rather than using positive `tabindex`. Use native buttons for actions and links for navigation; use established widget primitives or keyboard patterns for tabs, trees, sliders, and resize handles.
- Move focus in response to a user action or to recover focus when its target disappears. Background updates, streamed output, toasts, and incoming prompts must not steal focus.
- If a focused item is closed or deleted, move focus to the next place the user can continue the same task: the next or previous item in the same list, or a stable fallback such as the list heading or the control that opened it. Use the visually nearest control only when it serves that task. Don’t leave focus on `<body>`.
- Chromium drops focus to `<body>` without an event when the focused element is removed, disabled, or stops being editable. `packages/ui/src/context/focus-rescue.tsx` (installed in `AppBaseProviders`) recovers it inside a `data-focus-scope`: the next item, or the previous after the last, widening to the enclosing scope when the inner one is empty, and back to what had focus before when nothing is left. Mark a new list, strip, chip row or panel with `data-focus-scope` rather than adding per-feature focus code. Rescue never moves focus into a `role="tablist"`, because Kobalte tabs select themselves on focus, so don't mark a tab list as a scope. Items in an overlay leave the return to the overlay; rescue steps in only when the overlay's opener is gone too. Move focus explicitly when the task has a better target than the neighbour, such as the composer after the last chip.
- Chromium drops focus to `<body>` without an event when the focused element is removed, disabled, or stops being editable. `packages/ui/src/context/focus-rescue.tsx` (installed in `AppBaseProviders`) recovers it inside a `data-focus-scope`: the next item, or the previous after the last, widening to the enclosing scope when the inner one is empty, and back to what had focus before when nothing is left. The control it moves focus to shows its ring only when Tab or an arrow key last moved focus; typing, shortcuts and a key pressed on a clicked control don't count. Mark a new list, strip, chip row or panel with `data-focus-scope` rather than adding per-feature focus code. Rescue never moves focus into a `role="tablist"`, because Kobalte tabs select themselves on focus, so don't mark a tab list as a scope. Items in an overlay leave the return to the overlay; rescue steps in only when the overlay's opener is gone too. Move focus explicitly when the task has a better target than the neighbour, such as the composer after the last chip.

## Verify

Expand Down
1 change: 1 addition & 0 deletions .oxlintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@
"**/.sst",
"**/*.d.ts",
"**/sdk.gen.ts",
"packages/cli-rs/**",
"packages/plugins/figma/skills/**",
".agent/**",
".agents/**",
Expand Down
Loading
Loading