Commit Graph
14 Commits
Author SHA1 Message Date
Neil 6018fca4de refactor: group shared settings, profiles and execution hosts (#43047)
* refactor: place shared settings profiles and host contracts with owners

* fix: retire stale cleanup validation contacts

* refactor: consolidate imports from concrete owners

* refactor: bind new card fixture to profile defaults owner

* style: format rebased concrete host import

* refactor: consolidate project header color owner imports

* fix: load released phone readers after folder moves

* fix: preserve released chat readers and current owner imports
2026-11-16 04:03:33 -08:00
Brennan BensonandClaude Opus 5.5 eec5ebfe7a Free idle hidden desktop browser pages (#40653)
* Bound retained desktop browser guests by idle page count

* Type the browser guest retention regression fixtures

* Update document visibility after React commits

* Preserve current page recency and private document audio protection

* Avoid observer handshakes on child-frame load completion

* Complete the browser certificate replay WebContents fixture

* test(browser): complete guest protection fixture contracts

* fix(browser): retain the saved page catalog after guest reclamation

* fix(browser): preserve inventory ownership and global tab order

* fix(browser): scope inventory ownership work to browser workspaces

* Complete browser cleanup mocks after main sync

* fix(browser): retain edited documents and earlier history

* test(browser): complete document guest history fixture

* test(browser): assert history transition publication

* Restore reclaimed browser pages before commands and retain active owners

* Fix native idle-page eligibility and retain canonical reclaim order

* Keep browser inventory recovery fixtures faithful to saved pages

* fix(browser): retry eligible guests and avoid default debugger acquisition

* fix(browser): publish owner protection before discard retries

* test(browser): isolate protection acquisition before release

* test(browser): keep preview input fixture native-shaped

* Fix browser lifecycle fixture typecheck coverage

* fix(browser): finish guest discard admission before replying

* fix(browser): retire only the hidden page surplus

* fix(browser): retain cold recovery and modal ownership boundaries

* test(browser): complete successful native load before stopping

* Preserve browser page ownership across profile replacement

* Typecheck connected browser profile fixtures in their owning project

* Import browser disposal operations from their owning module

* WIP: interrupted command-target repair (stopped 11-14 for Brennan's no-cap ruling)

* Keep browser commands on the selected page after idle discard

* Limit page-close routing cleanup to its current references

* Guard page close against unrelated routing work

* Type the routing retention probe by its owner

* Add a Memory Saver setting for idle browser pages

Settings > Browser gets a Memory Saver switch (on by default, kept under the
existing kill-switch key) and an "Unviewed for" hours field (1-168, default 4).
Main re-keys idle deadlines live from when each page hid, so turning it off
stops pending frees and changing the hours applies without a restart.

* Let main alone gate Memory Saver and key idle deadlines by hide time

Changing the hours no longer walks every tracked page: the heap is keyed by
when each page hid and the shared offset is applied at the head. The renderer
no longer vetoes on the setting or reinstalls its listener on toggle, so a
toggle sends no visibility replay and can't strand an in-flight page.

* Document the fixture casts in the browser inventory publication test

* Await the now-async window graph sync in browser inventory tests

---------

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-11-15 09:14:11 -08:00
506d116ee3 Move saved server reads and writes off the main thread (#42253)
* Move environment store operations off the main thread

* Preserve CLI startup speed with the serialized environment owner

* Handle absent paired host labels in the producer regression fixture

* Preserve publication ownership and copy selected environment results

* Correct publication and WSL readiness regression fixtures

* Include environment store worker in deployed server artifacts

* Check fresh listing publication across an intervening store update

* Await store-backed results in new recovery coverage

* Retire failed page publications and retain CLI worker support entries

* Unpack environment store support modules for the installed CLI

* Align async store callers with their return contracts

* Avoid hardening work for absent environment store files

* Keep permission repair bounded to one hardening attempt

* Align store test fixtures and await pairing replacement

* Use the semantic store operation for external pairing fixtures

* Provide the live sender frame in the timed subscription fixture

* Share pending server lookups and settle retired phone requests

* Keep the relay error type import

* Keep status ownership and transport imports acyclic

* Await replacement pairing in status retirement cases

* Keep asynchronous server rows bound to their admitted pairing

* Keep inventory snapshots and queued delivery at one publication boundary

* Await saved-host and graph test setup through publication completion

* Finish async fixture types and remove foreground timing probe

* Await renderer surface transitions in process identity coverage

* Await nested graph publication fixtures through their callers

* Await restored pane graph publication before hook assertions

* Include imported store worker and sidebar files in web typecheck

* Prepare saved host storage in source-based WSL test rigs

* Await saved server lookups in the source retirement diagnostic

* Preserve newer WSL status across async saved-host reads

* Fence stopped probes when a newer WSL Ready arrives

* Keep saved WSL host selection covered when admission is off

* Check WSL probe ownership after async admission

* Preserve WSL stop authority without cancelling Ready persistence

* Prune removed WSL E2E real-time wait from flaky-test baseline

* Limit WSL callback invalidation to confirmed stops

* Retire pending WSL notices on every confirmed stop

* Close the WSL picker dialog explicitly between scenarios

* perf(layout): skip unused normalization reports in pane commands (#42615)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* Clarify cleanup pinning and ignored-file protection (#42616)

* test: remove 55 low-value suites and assertion driver (#42605)

Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>

* fix(skills): skip Claude sync scratch folders during skill discovery (#42610)

Claude Code parks replaced skill copies in `.trash` and in-progress syncs
in `.staging` under its skills roots. Discovery walked into both, so each
synced skill showed up as duplicates. Prune those directory names in the
native file walk and in the generated WSL `find` command.

Co-authored-by: Neil <4138956+nwparker@users.noreply.github.com>

* test: remove 78 low-value suites and trim redundant cases (#42621)

Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>

* Keep quit teardown within the source line budget

---------

Co-authored-by: Jinjing <6427696+AmethystLiang@users.noreply.github.com>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Co-authored-by: OrcaWin <alpha-eng@stably.ai>
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
Co-authored-by: BingZ <zzb@gxsmjx.com>
Co-authored-by: Neil <4138956+nwparker@users.noreply.github.com>
2026-11-15 02:45:45 -08:00
Neil d5a90c0da0 refactor(shared): group host and runtime owners by domain (#42528) 2026-11-14 21:10:34 -08:00
Kelvin Amoaba 51d0c97e39 fix(browser): publish title, loading and history state for server-run browser tabs (#41952)
Streamed (offscreen) pages only republished their session-tab row on commit,
in-page navigation, first favicon and load failure. A title parsed after
commit, a live document.title change and the end of a load never reached the
desktop tab strip or the phone, and the row hardcoded loading and back/forward
as false. Publish title and load-state changes through a per-page coalescer
and read real loading and history state into the row.
2026-11-13 10:23:30 +00:00
OrcaWinandOrcaWin 5796c30c97 test: remove 161 low-value cases and 12 suites (#41151)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-11 05:16:06 -08:00
OrcaWinandOrcaWin 3c7d1e1675 test: remove 263 low-value cases across 20 suites (#41144)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-11 04:05:46 -08:00
Neil 386afed0ca refactor(persistence): organize profile state and Store domains (#41106)
* refactor(persistence): organize profile state and Store domains

* fix(test): locate relocated profile state worker fixtures
2026-11-11 02:44:06 -08:00
OrcaWinandOrcaWin 0db6fe6c44 test: remove 337 low-value test definitions across 13 suites (#41071)
* test: remove 337 low-value test definitions across 13 suites

* test: brace relay assignment fixture conditionals

---------

Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-11 00:15:57 -08:00
Kelvin Amoaba 805ec4ee21 fix(browser): show site favicons on browser tabs running on a remote host (#40049)
* fix(browser): show site favicons on remote host browser tabs

Host-run browser tabs mirrored to a paired client always showed the
globe: the host's session-tab snapshot carried no favicon. Hosts now
publish the active page's icon URL as an optional faviconUrl, capped at
2 KB and dropped when it points at the host's loopback. Headless hosts
pick it up from page-favicon-updated and publish only when it changes;
desktop hosts include it in the existing graph-sync key. Clients keep
their current icon when an older host omits the field.

* fix(browser): publish a remote tab icon on arrival, not on every swap

Read the headless favicon through the agent browser bridge so the
runtime stays free of Electron imports, publish only when a page gains
an icon so animated icons ride later publishes, and drop IPv4-mapped
loopback icon hosts.

* fix(browser): clear a remote tab icon when a cross-origin load starts

A load that fails on the new origin never commits, so clearing only on
did-navigate kept the old site's icon beside the failed URL. Also give
the runtime tests' bridge fakes the new favicon getter.

* test: give the session-tab bridge fakes the favicon getter
2026-11-09 00:59:11 +00:00
OrcaWinandOrcaWin 0da741a22f test: remove 988 low-value tests (#39797)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-08 00:42:37 -08:00
Neil 3a0e9a27d0 refactor: organize backend runtime by defining owner (#39625)
* refactor(main): organize runtime implementation owners

* test: retire wall-clock CLI title recovery case

* refactor: route new folder mutation to runtime store owner

* test: import folder mutation store contract from its owner
2026-11-07 22:24:34 -08:00
Neil c99e71b315 refactor: group renderer runtime resource owners (#39571) 2026-11-07 20:52:26 -08:00
Brennan BensonandJurassic Knights b039d4fe5b Keep published active tabs aligned with current selection (#38844)
Paired clients now publish the chat actually selected on the desktop as the active tab; saved layouts, CLI-created chats, closes and restarts keep it consistent. Carries community PR #34526.

Co-authored-by: Jurassic Knights <jurassicknights@gmail.com>
2026-11-06 04:00:10 -08:00