Commit Graph
2047 Commits
Author SHA1 Message Date
Jinjing 8e08e0f13a feat(native-chat): mark forks with a Fork prefix and a Forked from pill (#42370)
* feat(native-chat): mark forks with a Fork prefix and a Forked from pill

Derive the fork mark from the chat's forked-from link instead of the saved
name: new forks keep their source's name, tabs and chat lists show a muted
"Fork ·" prefix (a fork icon in narrow tabs), and the transcript divider
becomes a pill that opens the original. Older " fork" names are trimmed
only when they exactly match what the old build generated.

* fix(native-chat): open fork sources in local workspaces; fork mark polish

- Open the source from the Forked from pill whenever its host is reachable:
  a local workspace or a connected SSH target, and a connected remote runtime.
- Draw the Fork mark in the muted text color (not opacity), normal weight,
  and name a forked source with its mark in the tab hover card.
- Name a fork tab's close button after its marked title.
- Shorter ru/pt mark words; bdi around names; RTL-aware pill chevron.
- Re-read a watched source's parent when its marker refreshes.
- Mock server: MOCK_FORKED_CHATS scenario for the phone.

* fix(native-chat): name forked phone rows for screen readers; read source agent only

- Mobile worktree rows give a forked chat's label the "Fork: <name>" accessible name.
- An older fork's unnamed source reads the agent from the source's own summary,
  which its subscription already wakes for.

* fix(mobile): carry the fork mark on history rows, not a separate set

Session-history recordings capture the screen state as plain data; a fork
is now an optional field on its own row, so rows without forks are unchanged.

* test: drop copy-pinning fork tooltip cases

* fix(native-chat): show the fork icon on narrow tabs in the app

A later stylesheet repeats Tailwind's hidden utility, which beat the icon's
container-query display rule, so narrow fork tabs showed no mark. The icon
now renders only in tabs and uses its own display rules.

* chore(mobile): mock server answers a v2 hello like an older host

Current phones open with the v2 handshake; closing with 4001 lets them fall
back to the legacy handshake this mock implements.

* fix(mobile): mark a forked chat in its tab's action sheet title

* test(mobile): assert the fork sheet title's behavior, not its copy

* test(mobile): type the fork sheet test's stand-in props

* test: follow main's moved test rig and async fork-marker delivery
2026-11-14 12:36:12 -08:00
OrcaWinandOrcaWin 65c3de827e test: remove low-value browser and app-shell suites (#42458)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-14 10:55:19 -08:00
OrcaWinandOrcaWin abcf0a559f test: remove thin mobile readiness suites (#42454)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-14 10:40:12 -08:00
Neil 47892c98a0 refactor(mobile): organize native shell ownership (#42451) 2026-11-14 10:23:30 -08:00
Neil 29e7d1a7c9 refactor(mobile): organize recorder engine and domain adapters (#42446)
* refactor(mobile): organize recorder engine and domain adapters

* refactor(mobile): consolidate recorder loader type imports
2026-11-14 09:56:10 -08:00
Neil 5973e023b1 refactor(mobile): organize page bridge and presentation owners (#42439) 2026-11-14 09:32:05 -08:00
OrcaWinandOrcaWin ed162efc80 test: remove weak rollback oracle and redundant fixtures (#42440)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-14 09:26:37 -08:00
OrcaWinandOrcaWin c0bc27438d test: remove low-value mobile wrapper and traversal tests (#42434)
* test: remove redundant mobile preview and editor wrapper tests

* test: trim mobile traversal and mocked host assertions

---------

Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-14 09:07:18 -08:00
Neil cd408d21f6 refactor(mobile): organize shared presentation owners (#42432) 2026-11-14 08:46:42 -08:00
Neil 5bf36a80c5 refactor(mobile): organize markdown editor and preview owners (#42428) 2026-11-14 08:20:20 -08:00
OrcaWinandOrcaWin 66f45dec3e test: remove low-value mobile and frozen baseline checks (#42422)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-14 07:53:48 -08:00
Neil 654b5ab855 refactor(mobile): group workspace creation and worktree presentation (#42420) 2026-11-14 07:49:08 -08:00
Neil 5327711b18 refactor(mobile): organize diff review and pull request owners (#42416) 2026-11-14 07:19:13 -08:00
Neil 43fbfd93cf refactor(mobile): group worktree modules by defining owner (#42406)
* refactor(mobile): group worktree modules by defining owner

* refactor(mobile): use erased recording adapter type imports
2026-11-14 06:49:50 -08:00
Neil 5c4b500cf2 refactor(mobile): group transcript modules by defining owner (#42394) 2026-11-14 05:47:02 -08:00
OrcaWinandOrcaWin 3c3ffdc155 test: remove low-value mobile suites and redundant assertions (#42390)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-14 05:28:55 -08:00
Neil c445f7dbc1 refactor(mobile): group native chat modules by defining owner (#42388) 2026-11-14 05:13:41 -08:00
OrcaWinandOrcaWin 18d13f828a test: remove low-value recovery, mobile and RPC cases (#42384)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-14 04:48:50 -08:00
Neil 574cea7ee5 refactor(native-chat): group transcript and input modules by owner (#42362) 2026-11-14 03:04:59 -08:00
OrcaWinandOrcaWin 5e4c47d5f0 test: remove low-value markdown fold and invalidation cases (#42361)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-14 02:55:55 -08:00
OrcaWinandOrcaWin 5a2990b630 test: remove marginal IME mobile endpoint and daemon cases (#42354)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-14 02:30:19 -08:00
Neil 9bd6360e36 refactor(sessions): group lifecycle and option modules by owner (#42353) 2026-11-14 02:20:48 -08:00
OrcaWinandOrcaWin 19e400856a test: remove low-value mobile runtime and utility suites (#42315)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-13 22:53:07 -08:00
OrcaWinandOrcaWin 15d4bd1d1a test: remove mobile and transport helper suites (#42306)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-13 22:25:47 -08:00
OrcaWinandOrcaWin 9e42fe12a2 test: remove low-value boundary and utility suites (#42304)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-13 22:07:25 -08:00
Jinjing 2105344a21 fix(native-chat): offer Submit on the last question step after skipping (#42268)
* fix(native-chat): offer Submit on the last question step after skipping

The last step's footer label came from the current question only, so a
skipped last question showed an outlined Skip even when earlier answers
would be submitted. Label the last step Submit whenever any question is
answered; an all-skipped prompt keeps Skip, which still dismisses.

* test(native-chat): add skipped-last-step question card fixture
2026-11-13 21:25:31 -08:00
OrcaWinandOrcaWin d06458173d test: remove low-value relay, workspace and UI suites (#42288)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-13 20:59:03 -08:00
OrcaWinandOrcaWin e2e69135f9 test: remove low-value runtime and bridge cases (#42234)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-13 17:45:56 -08:00
Kelvin Amoaba f86697bdef fix(files): opening a file from the phone no longer switches the desktop's view (#42212)
* fix(files): phone file opens no longer switch the desktop's view

files.open and files.openDiff passed an absent navigation target straight
to the window, which treats absence as a host switch. Phones send none,
so every phone file or diff open moved the desktop to that workspace and
the editor. Resolve an absent target to caller at the RPC; host/all from
the CLI's --focus still move the window.

* fix(mobile): Open in session selects the diff on the phone itself

The review screen relied on the desktop switching to the opened diff,
which only reached phones still following the host. Select the opened
diff for this phone before going to the session.

* fix(mobile): select only the working-tree diff and stop when the review screen closes

* test: drop type casts the changed-code gate flags
2026-11-14 01:07:57 +00:00
Brennan Benson 8c306365dd perf: refresh agent models when CLI inputs change (#41976)
* perf: refresh agent model catalogs when launch inputs change

* test: cover model catalog launch input changes

* test: require explicit refresh intent for floating agents

* fix: combine model catalog ownership imports

* Observe direct agent scripts after interpreter options

* Expose refresh intent in preflight API types

* Keep slow model discovery alive beyond picker waits

* Explain the real transport regression test budget

* Use typed catalog test requests and locate cast rationale

* Assert discovered ACP effort choices directly

* Fix catalog regression fixture types
2026-11-13 16:34:06 -08:00
OrcaWinandOrcaWin 4ce1f9e9ab test: remove marginal lifecycle and protocol cases (#42191)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-13 15:50:13 -08:00
Neil dcf2515ac4 fix(mobile-relay): bounded resolve on persistent 4404, widen a timed-out resolve, rate-limit deferral logs (#41994)
* fix(mobile-relay): resolve on persistent 4404 and make deferral logs readable

* fix(mobile-relay): bound 4404 director resolves for a desktop that stays offline

Review follow-up:
- Resolve on the 2nd consecutive 4404 of an episode, then the 4th, 8th, 16th,
  and never twice within 5 minutes per host. A sleeping laptop with a
  foregrounded phone now costs 6 resolves in 30 minutes, not ~1 per 2 dials.
- If the director names the same cell and epoch, keep the normal 4404 wait:
  no re-route and no immediate redial.
- The streak ends on any other outcome (including aborts), when the phone has
  connected since the last 4404 (a direct-path win), or after a 2-minute gap.
- Clear the gate reprobe due time with its timer so the deferral log never
  reports a stale remainingMs.

* fix(mobile-relay): double the gap between 4404 resolves while the desktop stays offline

The 5-minute floor alone set the pace (12 resolves/hour, forever). After each
resolve the minimum gap now doubles, 5 -> 10 -> 20 -> 40 -> 60 min, and
returns to 5 min after a successful relay dial or any connection. A laptop
asleep for two hours with the phone in the foreground costs 5 resolves.

* refactor(mobile-relay): namespace the supervisor's diagnostic log import to stay within max-lines
2026-11-13 15:25:31 -08:00
Neil b81f0dde51 fix(pairing): never advertise or dial link-local direct endpoints (#41982)
Desktop: drop IPv4 169.254.0.0/16 (and, as before, IPv6 fe80::/10)
addresses from the pairing interface list, so an APIPA or idle adapter is
never the QR's direct endpoint. When nothing else is usable the offer
already omits the direct address (Relay carries the invite; LAN-only
refuses). Among non-Tailscale candidates, an adapter known to hold the
default route now wins ties.

Mobile: a relay-paired host whose stored endpoint is link-local seeds its
logical client with a never-dialing 'reconnecting' stand-in and disables
the direct return probe, so already-paired phones go straight to Relay
instead of redialing the dead address. Relay-less hosts still dial.
2026-11-13 15:09:53 -08:00
OrcaWinandOrcaWin 21c946621c test: remove low-value task recordings and assignment checks (#42135)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-13 13:09:32 -08:00
OrcaWinandOrcaWin 3cfdf07402 test: remove low-value recording families and PR snapshots (#42125)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-13 12:43:50 -08:00
OrcaWinandOrcaWin 644a4a8bd4 test: remove low-value RPC recording scenarios and goldens (#42120)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-13 12:25:26 -08:00
Neil 587562e862 refactor: organize shared sidebar list modules by domain (#42107) 2026-11-13 12:12:51 -08:00
OrcaWinandOrcaWin 13ed693f46 test: remove low-value mobile suites and redundant cases (#42118)
* test: remove low-value mobile chat and lint cases

* test: remove redundant mobile task and terminal suites

* test: remove terminal inventories and recording harness smoke suites

* test: remove redundant mobile transport and worktree cases

---------

Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-13 12:08:57 -08:00
OrcaWinandOrcaWin 44689147f8 test: remove low-value mobile and lint suites (#42108)
* test: remove low-value mobile and lint suites

* fix: keep Git runner within lint budget

---------

Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-13 11:58:36 -08:00
OrcaWinandOrcaWin a36d1ddafd test: remove low-value bridge and native checks (#42105)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-13 11:15:10 -08:00
Kelvin Amoaba 39ccf4fb56 feat(native-chat): show each subagent's model, current tool and result in the chat (#41766)
* feat(native-chat): show each subagent's model, current tool and result in the roster

Subagent roster rows now carry the child's role, model, reasoning effort,
the tool it is running and the last thing it said, so a row says what the
subagent is doing and, once done, what it found. Codex children take model
and effort from the spawn call; Claude children take the model from their
own messages. A hover card shows the longer text.

* feat(native-chat): name subagent models and roles the way people say them

Show Opus 5.5 · High instead of claude-opus-5-5 · high, reusing the
model-id label and effort picker copy, and General purpose instead of
general-purpose.

* fix(native-chat): read Codex subagent model and effort from its started activity

Current Codex announces a spawn only through subAgentActivity, which carries
the model and reasoning effort the child resolved to.

* fix(native-chat): use the hover card's own spacing variant for the subagent preview

* fix(native-chat): show a subagent's reply as plain text in its roster row and preview

Its last message is markdown; the row now drops backticks, emphasis, list
and heading marks and joins lines into one readable line.
2026-11-13 19:01:39 +00:00
Neil 17a1dc373b refactor: group shared worktree modules by feature (#42093)
* refactor: group shared worktree modules by feature

* refactor: retarget new worktree admission test to moved owner
2026-11-13 10:59:36 -08:00
OrcaWinandOrcaWin 65055509d6 test: remove low-value mobile suites and redundant native input coverage (#42098)
* test: remove low-value mobile and native input cases

* test: prune redundant mobile suites and verify native receiver contents

---------

Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-13 10:48:53 -08:00
OrcaWinandOrcaWin 8e604e2f57 test: trim duplicate mobile and internal fixture assertions (#42094)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-13 10:27:01 -08:00
OrcaWinandOrcaWin b1fefd9fcd test: remove low-value mobile Markdown editor coverage (#42090)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-13 10:06:48 -08:00
OrcaWinandOrcaWin 048eefd3bf test: remove low-value mobile and example coverage (#42087)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-13 09:55:11 -08:00
Neil dc67a6435f refactor(mobile): organize source control by feature owner (#42073) 2026-11-13 08:49:09 -08:00
Neil 075d6b3b50 refactor(rpc): group request contracts by feature owner (#42063) 2026-11-13 08:21:31 -08:00
Kelvin Amoaba c725692258 fix(native-chat): /compact runs while a Claude chat's background subagent works (#41945) 2026-11-13 15:33:32 +00:00
Neil 1af96e86ff refactor(mobile): organize terminal session feature owners (#42046) 2026-11-13 06:59:38 -08:00