Commit Graph
22078 Commits
Author SHA1 Message Date
Neil 40d2c4d1f3 fix(cloud): WAKE-SCROLLBACK divider copy on its own key (the catalog value renders; the old key had from/to) 2026-11-11 09:43:04 -08:00
Neil 1d5a9f5e7d fix(cloud): WAKE-SCROLLBACK no blank frame on attach, and the whole pre-sleep history (m4air proof)
Two defects the real-app proof found:
- ~400 ms blank pane on attach: the woken terminal's fresh-spawn viewport
  blanking ran before the snapshot drain. A pane with pre-sleep output to put
  back now holds rendering (DEC 2026) there instead of blanking; it keeps its
  greyed history until the restore rewrites it.
- History cut to ~880 rows: by "asleep" the transport had resubscribed and
  replaced the buffer with the host's 1000-row snapshot, and the capture could
  re-run on it. It now captures when sleep is asked for (going to sleep), once
  per sleep (a later look only refines the start time), and arms only after
  the workspace was actually asleep.
2026-11-11 09:40:06 -08:00
Neil 66546e7cd7 fix(cloud): WAKE-SCROLLBACK the woken terminal's first snapshot takes the restore (new PTY id), no race with React arming; test times relative to now 2026-11-11 09:24:57 -08:00
Neil 685d83a9f7 fix(cloud): WAKE-SCROLLBACK divider time as a locale range (2:02–2:31 PM); render held (DEC 2026) from the snapshot's clear to the restore, so no blank or history-less frame; fixture filler labelled 2026-11-11 09:09:26 -08:00
Neil 1226eccf6f feat(cloud): WAKE-SCROLLBACK a woken cloud terminal keeps its pre-sleep output above a "Slept … · processes stopped" divider
Sleep reboots the VM; the woken pane attaches to a new terminal whose snapshot
replay erases scrollback (`\x1b[3J`), so everything the pane showed was gone.

- Capture (asleep/waking, before the new terminal attaches): the pane's normal
  buffer rendered from its cells as text + SGR only (never its escape stream),
  capped at terminalScrollbackRows. Shell panes keep their visible rows too;
  agent / full-screen panes (the #451 rule) keep only the scrollback above, so
  no frozen TUI frame comes back. No live buffer (never mounted, restarted
  while asleep): the plain-text read-only copy saved at sleep, uncoloured; none
  at all: nothing restored, nothing said.
- Restore (once the workspace left "asleep"; the woken terminal's snapshot
  drain): after the snapshot paints, a client-side rewrite of restored output,
  the dim divider, then the woken screen, cursor put back with relative moves.
  Nothing reaches the PTY (replay writer, replay guard); a final sanitizer keeps
  only text and CSI…m (OSC 52/0, DECSET, bracketed paste, cursor moves dropped).
  Pinned to the bottom unless the person had scrolled up. One divider per sleep.
- The kept output is dropped once restored, or when its pane / tab / workspace
  goes away.
2026-11-11 09:07:46 -08:00
Neil f53d323f42 Merge pull request #454 from nwparker/cloud/ja15-rerun-silent-command
fix(cloud): WAKE-RERUN a silent command running at sleep (sleep 900) gets its Rerun
2026-11-11 08:54:26 -08:00
Neil fc09b95427 test(cloud): WAKE-RERUN a finished silent command (true, fresh prompt) offers nothing 2026-11-11 08:51:19 -08:00
Neil 52fa2026b1 fix(cloud): WAKE-RERUN a silent command still running at sleep (sleep 900) gets its Rerun
On cut 68321452c9 a shell pane running `sleep 900` woke with no "Woke up"
bar. The command printed nothing, so its prompt line was the last text and the
detector read it as idle / half-typed (a rule from the first JA-15 detector).

The capture now notes whether the cursor sat below the last text: Enter was
pressed on that prompt line, so the silent command is running and gets Rerun. A
half-typed line (cursor still on it) and a bare prompt still offer nothing; agent
launches and the orca-launch script are still never offered.
2026-11-11 08:48:56 -08:00
Neil 68321452c9 Merge pull request #453 from nwparker/cloud/rst-flags-keep-permission
fix(cloud): RST-FLAGS Restart keeps the permission flag when default args are substituted (P1)
2026-11-11 07:55:37 -08:00
Neil 72b88e5d49 fix(cloud): RST-FLAGS Restart keeps the permission flag when default args are substituted
#402's fallback sent the raw settings.agentDefaultArgs string as agentArgs for a
pane with nothing recorded. The host takes explicit agentArgs verbatim and only
projects its launch profile (configured Arguments + permission choice) when none
are sent, so a pane launched as 'claude --dangerously-skip-permissions --model
opus --effort high' restarted as 'claude --model opus --effort high' (real-app,
pane's own process by marker, before/after). Project the defaults through
resolveTuiAgentLaunchRawArgs (the same projection a fresh launch uses), so the
permission choice is kept; with no default args nothing is sent, as before.
2026-11-11 07:52:51 -08:00
Neil 146b220e76 Merge pull request #452 from nwparker/cloud/premerge-base-list
chore(cloud): premerge skips full-suite base-list tests (exact-match filter, unit-tested, logged)
2026-11-11 07:21:55 -08:00
Neil 8b7b51394e test(cloud): base-list skip is an exact whole-line filter with a unit test; off-list tests stay selected
filter-base-list-tests.sh is the one place premerge drops base-list tests (logged to stderr). The test covers:
a base-list test is dropped and logged while an off-list test is still selected; shared prefix/suffix/folder
never skips; entries are literal (no regex) and comments are ignored; a missing list keeps everything.
2026-11-11 07:17:49 -08:00
Neil 075c7bb794 Merge pull request #451 from nwparker/cloud/ja15-hide-after-relaunch
fix(cloud): RA-WAKE no woke-up bar over an agent the host relaunched
2026-11-11 07:13:29 -08:00
Neil 9ddbb9782f test(cloud): RA-WAKE tests build real agent rows instead of type assertions 2026-11-11 07:10:21 -08:00
Neil ad1970f2a4 fix(cloud): RA-WAKE no woke-up bar over an agent the host relaunched; Restart only if it never came back
After a wake the host relaunches the pane's agent itself (WAKE-1, #450, ~7 s),
so #449's "Restart Claude" would sit over a live, relaunched Claude (K3).

On an agent pane the woke-up strip now:
- disappears for good once the agent reports in after the sleep (hook
  evidenceObservedAt newer than the asleep capture; never updatedAt, which a
  reconnect replay restamps);
- shows nothing for a 15 s grace;
- then offers "Restart <agent>" only over a bare shell (e.g. "No conversation
  found"); a screen that may be the agent shows nothing and is re-checked on
  each terminal draw (no polling) for up to 60 s after the wake, then the hint
  lets go.
Codex is relaunched by the same host path, so the same rule applies. Shell panes
are unchanged.
2026-11-11 07:04:31 -08:00
Neil d5398cfb6e Merge pull request #403 from nwparker/cloud/pc3b-strip-polish
fix(cloud): PC-3b neutral icon for not set up; narrow paste strip keeps one line
2026-11-11 06:58:11 -08:00
Neil e41d96ad44 Merge pull request #405 from nwparker/cloud/ra11f-live-read-30s
fix(cloud): running Orca Cloud panes re-read the agent account every ~30 s, so a revoke shows the strip within ~30 s
2026-11-11 06:58:06 -08:00
Neil 4617653cdd Merge pull request #449 from nwparker/cloud/ja15-rerun-shell-only
fix(cloud): JA-15 woke-up strip: no agent input as Rerun; Claude panes get Restart Claude
2026-11-11 06:41:51 -08:00
Neil 0e9eb6201c chore(cloud): premerge skips full-suite base-list tests (fail upstream too) and logs each skip
w6's #450 premerge pulled in 4 agent-hooks tests through the importer selection; all 4 fail identically on
integration without the change (and on upstream at the merge base) under run-vitest.mjs, so premerge failed
on environment-only reds. The base list (41 files, derived on upstream e295b0d37c) now lives in the repo
and is subtracted from the targeted run.
2026-11-11 06:39:20 -08:00
Neil 9d68071f55 Merge pull request #448 from nwparker/cloud/rr-c1-choose-variant
Cloud: RR-c1 'Choose repository' whenever the Project picker can offer one
2026-11-11 06:39:06 -08:00
Neil 2fb8cc3222 Merge pull request #450 from nwparker/cloud/w6-wake-fresh-resume
fix(agents): woken turn-less Claude starts fresh instead of --resume into 'No conversation found' (WAKE-1)
2026-11-11 06:38:28 -08:00
Neil 0aa6275247 fix(cloud): JA-15 woke-up strip never offers an agent's input as a command; Claude panes get Restart Claude
After a wake, a Claude pane's "Woke up · processes stopped while asleep" strip
offered `Rerun Try "create a util logging.py that..."`: Claude's input
placeholder, scraped as the last prompt line.

- Shell-command detection rejects TUI chrome (box-drawing rows), bare ">"/"›"
  input rows, agent launch lines and Orca's self-deleting
  `. /tmp/orca-launch-*.sh` script. Alternate-screen panes get no hint.
- A Claude/Codex pane (agent status row, not back at a shell prompt) offers
  "Restart Claude" through the existing RA-11 restart path (#429/#425: resume,
  fresh fallback on "No conversation found"), factored into one shared helper
  used by the sign-in strip too. Interim until WAKE-1 relaunches agents on wake.
- Shell panes keep Rerun with their real command.
2026-11-11 06:37:49 -08:00
Neil 708976fc4b fix(cloud): RR-c1 'Choose repository' whenever the picker can offer one (GitHub projects count)
design-squad: the real shot offered 'Add a GitHub repository' while Hello-World (a GitHub project) was in the picker. hasRepos counted only GitHub repositories with no clone here; it now also counts added git projects with a GitHub remote (or one not read yet).
2026-11-11 06:32:14 -08:00
Neil 07adb39663 fix(agents): a woken turn-less Claude starts fresh under its id instead of --resume into 'No conversation found' (WAKE-1)
A Claude pane that never took a turn has no transcript, so the host's wake relaunch (and an explicit ensureAgentSession resume) ran claude --resume <id>, which printed 'No conversation found' and left a bare shell. When the hook-reported transcript path is local to the host and not on disk, the host now launches claude --session-id <id> with the pane's recorded args (model, effort) instead. Same id, so resume claims, holds and readers still match. A session with a transcript, a non-Claude agent, an SSH host, or no recorded path keep the plain resume. #425 stays the desktop backstop.
2026-11-11 06:31:37 -08:00
Neil 6a68631ae4 Merge pull request #446 from nwparker/cloud/rr-c1-folder-cloud
Cloud: Orca Cloud on a plain-folder project keeps both selections and holds Create (RR-c1)
2026-11-11 06:28:31 -08:00
Neil 567a609052 Merge pull request #445 from nwparker/cloud/checkpoints-refusal-fix
fix: structured-worker refused-task flake after #191; cache checkpoint repo discovery
2026-11-11 06:24:29 -08:00
Neil b37c401156 Merge pull request #447 from nwparker/cloud/premerge-self-reexec
chore(cloud): premerge re-runs itself from the merged worktree and lists selected tests
2026-11-11 06:22:35 -08:00
Neil 07ff1fce75 fix(cloud): RR-c1 the links read as links at rest (underline), focus ring shown; test props 2026-11-11 06:22:00 -08:00
Neil ae31e1c0a8 chore(cloud): premerge re-runs itself from the merged worktree and lists the tests it selected
A branch cut before #437 ran its own old copy of premerge-check.sh (the integration merge only happened in
the temp worktree), so #440's first gate selected 0 tests although the merged gate selects the parity test.
The script now merges, then execs the merged copy; it also prints every targeted test file.
2026-11-11 06:08:39 -08:00
Neil 57253fac14 Merge pull request #440 from nwparker/cloud/local-command-cli-parity
fix(cloud): route local-command CLI root through the launch redirect
2026-11-11 06:07:24 -08:00
Neil 5d797cb22a fix(cloud): RR-c1 Orca Cloud on a plain folder keeps both selections and holds Create
design-squad (c): nothing switches on its own. One line under Project ('Orca Cloud needs a GitHub repository.') with 'Choose repository' (opens the Project picker at its GitHub repositories) or 'Add a GitHub repository' when there are none. Create is disabled with the same reason (title + aria-describedby), keyboard submit too, so the create can't fail with 'needs a GitHub repository'. Picking a GitHub repository clears it.
2026-11-11 06:06:21 -08:00
Neil 0656bce51f fix(test,checkpoints): aim the refused-task fixture at its task; discover repos once
structured-worker-cli 'keeps a refused first task inspectable' armed a global
'reject the next turn/start' right after 'agent launch' returned. launch returns
at input_accepted, before the coordinator's own first turn reaches the agent,
and #191's pre-turn snapshot widened that gap, so the coordinator's turn
sometimes consumed the rejection and the worker's task was accepted. Product
refusal was never lost: the logged turn/start order shows the coordinator
refused instead. The fixture now refuses only the turn carrying the task text.

Checkpoints also discover the repo once per folder (not-a-repo rechecked after
60 s, cache dropped on any capture failure), so later sends add no git spawn
before the turn starts. 20/20 runs green (8/8 tests each).
2026-11-11 06:05:27 -08:00
Neil 214f69e745 Merge remote-tracking branch 'private/cloud/integration' into cloud/local-command-cli-parity 2026-11-11 06:04:32 -08:00
Neil 3718b526a1 Merge pull request #439 from nwparker/cloud/rr-b-escape-cancels
Cloud: Escape cancels the pending start; a hidden setup page never auto-creates (RR-b, P1)
2026-11-11 06:01:58 -08:00
Neil 2c5de47839 Merge remote-tracking branch 'private/cloud/integration' into cloud/local-command-cli-parity 2026-11-11 05:58:37 -08:00
Neil 9e2c5f3e91 Merge pull request #444 from nwparker/cloud/w2-setup-stepper-always-four
fix(cloud): setup stepper always shows Account · Team · Plan · GitHub; unknown steps pending (DS-b)
2026-11-11 05:56:20 -08:00
Neil 99ffb4396b fix(cloud): RR-b the sidebar's always-mounted listbox no longer swallows Escape (real-run find) 2026-11-11 05:54:10 -08:00
Neil db71a83263 Merge pull request #442 from nwparker/cloud/reg4-clock-locale
Test: worktree-creation clock's German format follows the runtime's CLDR (REG-4)
2026-11-11 05:52:10 -08:00
Neil 0bd043f462 Merge remote-tracking branch 'private/cloud/integration' into cloud/local-command-cli-parity 2026-11-11 05:51:00 -08:00
Neil 7edec952af test(cloud): DS-b team-switch fixture carries the team detail and Switch action, as the app does 2026-11-11 05:48:26 -08:00
Neil 41ef22e20c Merge pull request #443 from nwparker/cloud/w6-send-refusal
fix(terminal): composer timeout still refuses the send (regression from #427)
2026-11-11 05:46:34 -08:00
Neil fb3aae1f8e Merge pull request #402 from nwparker/cloud/ra11d-restart-keeps-launch-args
fix(cloud): RA-11d Restart on an Orca Cloud pane keeps the pane's own model, effort and flags
2026-11-11 05:43:59 -08:00
Neil 640b4d879c test(cloud): REG-4 the clock's German format matches the runtime's CLDR, not one engine's string
run-vitest.mjs now runs this folder under Bun, whose Intl.DurationFormat (JSC)
formats de narrow as '2min 5s' where V8/Electron says '2 Min., 5 Sek.'. Both are
the runtime's own locale data; the code correctly uses Intl in either. The test
now checks German goes through the runtime's DurationFormat and isn't the English
fallback, instead of pinning V8's words (added in 54299a9412).
2026-11-11 05:43:38 -08:00
Neil 54d5e7c31b Merge remote-tracking branch 'private/cloud/integration' into cloud/local-command-cli-parity 2026-11-11 05:40:16 -08:00
Neil 6bd72b2bf2 fix(terminal): a launch composer that never comes still refuses the send when the agent never exited
#427 settled the composer watch through failOnLaunchedAgentExit, whose finally() aborts the signal it handed the wait. That abort reached the watch's own stop controller, which a startup dialog uses to admit sends, so a composer timeout with the agent still in front admitted the send (terminal-send-launch-composer.test.ts). Only a dialog's abort admits now, and a failed composer wait refuses instead of reading as an exit.
2026-11-11 05:38:17 -08:00
Neil 29cadf9a8d fix(cloud): setup stepper always shows Account · Team · Plan · GitHub; unknown steps pending (DS-b)
Journey re-run on 37dbe597f6: signed out the stepper read Account · Team · Plan
(no GitHub), and a member with no active team read Account · Team · GitHub (no
Plan). #420 only made Team permanent. Now all four always show, in the web's
order; a step the desktop can't judge yet (GitHub before sign-in, Plan while a
team switch is pending) is a neutral pending step. It is display only: the
current step and action still come from the known rows, so a placeholder can
never hold a start. No repository (D3) keeps its single step. Tests for both
repros and the never-holds-a-start case; fixtures signedOutGithubUnknown and
teamSwitchPlanUnknown.
2026-11-11 05:37:24 -08:00
Neil 07288af2a6 Merge pull request #441 from nwparker/cloud/rr-a-setup-cancel-keeps-hold
fix(cloud): RR-a cancelling a held launch's setup keeps the launch held (P1)
2026-11-11 05:37:01 -08:00
Neil add67aae5a test(cloud): RR-a strip-actions test sets window.api without a type cast 2026-11-11 05:35:06 -08:00
Neil ae48ab33ca fix(cloud): RR-b drop an unused lint directive 2026-11-11 05:34:03 -08:00
Neil d983dcb9fd fix(cloud-skills): a Synced list that grows past 10 after Sync now collapses too (#438) 2026-11-11 05:32:40 -08:00