Repository navigation
Keep the agent's browser activity across an app restart (cua board #93) - #4
Merged
Merged
Conversation
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
… board #93): browser_activity rows, each session's last 500, gone with the session's record
…and writes each new one through, so the activity list answers the same after an app restart (cua board #93); a failed read or write is logged once and never holds back the live row
…ists the session's activity as before the quit (cua board #93)
…er activity (cua board #93)
… PR that merges it releases it
… a tick told is written on the next turn in one transaction, over the store's own connection with no busy timeout, so a write lock another connection holds drops the batch at once (logged once) instead of stalling main for 2 s per row
SSFSKIM
force-pushed
the
fix/93-activity-persist
branch
from
October 9, 2026 04:00
041239e to
9ba6843
Compare
…93 review): the index closes before the browser stops, so the store runs the feed's flusher as it closes, before its write connection goes; the lock tests' bound loosened to 500 ms
SSFSKIM
added a commit
that referenced
this pull request
Oct 9, 2026
…on after its rebase) recorded as A-56; spec status, §9 and §13 E13 landed, §14 one line, §15 completed with the E13 paragraph and a retrospective delta; ledger §5 E13 row and §7 line; charter §13 X9's tool list rewritten to the seven tools, §19 landing line, §20 P1 closed paragraph; the cua_repl session's residue PRs #2 to #4 (bb6f953) noted; tracker: the cua #97 crash row removed as fixed, a row for the load-sensitive c7 dialogs case at the landing gate
SSFSKIM
added a commit
that referenced
this pull request
Oct 19, 2026
… copy are bounded by where their paths lead, refusing a link out of the working directory and a link at the destination
SSFSKIM
added a commit
that referenced
this pull request
Oct 19, 2026
…rceUnderCwd…": the upload's source is read through one descriptor of the file validated and the export's copy is opened through its real directory and no link artifact_upload_asset reads its source through readSourceUnderCwd (replacing sourceUnderCwd): the real path opened with O_NOFOLLOW_ANY on macOS (O_NOFOLLOW elsewhere) and O_NONBLOCK, the opened file's dev/ino compared with the validated lstat, the read capped one byte past ARTIFACT_MAX_BYTES. artifact_export writes its copy through openDestinationUnderCwd: the destination re-checked, its directory made, that directory's realpath checked to lie inside, the file opened there with O_WRONLY|O_CREAT|O_TRUNC|O_NONBLOCK and the same no-link flag, fstat-checked as a regular file, and the export streamed into the handle (no copyFile). readSourceFile keeps its signature for artifact_create. artifact-paths.test.ts: a swap hook on open, readFile and copyFile replaces the file after the checks; the source's last component swapped for an outside link and for a FIFO, `to` swapped for an outside link, and (macOS) a directory above `to` swapped for an outside link are each refused with nothing read or written outside.
SSFSKIM
added a commit
that referenced
this pull request
Oct 23, 2026
Persist the seed revision with installation and backfill legacy systems only when their canonical bundled content matches. Preserve built-in provenance while showing genuine editor/time metadata after owner or agent changes, including after restart and log pruning. Wait for all bundled seed assets in the existing startup check. Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
SSFSKIM
added a commit
that referenced
this pull request
Oct 23, 2026
Fold seed_only into WR-C's unreleased migration 11 alongside built_in. Leave released migrations 1 through 10 unchanged. Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
SSFSKIM
added a commit
that referenced
this pull request
Oct 23, 2026
Include seed_only after built_in in the migration 11 library_artifacts column expectation. Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
SSFSKIM
added a commit
that referenced
this pull request
Oct 23, 2026
…ents Keep the seed revision key in a dependency-free module so library readers and plain Node crash-writer bundles do not load Vite-only bundled defaults. Return delivered acknowledgments from design export test hosts and preserve the timer and branded request contracts in inspection regressions. Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
SSFSKIM
added a commit
that referenced
this pull request
Oct 25, 2026
…uns-code warning follow the chosen route's own revision (the clone's host read before the directory record); a seed's ownership, rank, shelf and publisher only for the seed's own repository; array-valued mcpServers counted, a named configuration file unknown; the external-publisher exclusion judged on the normalised place Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
SSFSKIM
added a commit
that referenced
this pull request
Nov 20, 2026
…nversation and holds a follow's bounds until its work settles - scalpel-2 #1: only records that carry the conversation's and the agent's ids count, so a file put in the found file's place between the walk and the open names nothing. - scalpel-2 #3 (the daemon's half): namesInAgent takes the conversation that drew the link and answers not named unless it is the transcript the session is bound to; a follow naming none links nothing. - scalpel-3 #1: a Markdown source's admission asks the search with a located callback; the follow's place and the proof's turn are kept until the locator's call settles. - scalpel-3 #2: the search waits with the follow's own end, aborted at its patience. - scalpel-3 #3: the proof's open and whole-file read stop at the first file system call after the follow has ended. - scalpel-3 #4: admittedFolder answers only once both git discoveries (and every work tree's resolution) have settled. Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
SSFSKIM
added a commit
that referenced
this pull request
Nov 20, 2026
…#3, #4) - #1: only a load that can still land holds a revisit back; a superseded one in flight does not, so the link's click reads after its follow. - #3: a Save that answers while a load issued since it began is out (the tab moved to another session, its read waiting on a follow) issues that load again after the write, so the tab shows the new session's answer. - #4: a continuation that found an outside file changed, answered read-only, is compared with the follows; once a follow found the link the file is read again, whole. Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
SSFSKIM
added a commit
that referenced
this pull request
Nov 21, 2026
… on either build before its capture The build is read once, the first time Settings opens, and every m1 capture requires Settings open. On master's build a reveal's check requires the words that reveal holds here, drawn at rest and in view (scalpel-5#1); the search scenes require their results, the no-match line and the landing's focus (#2); the memory budget's switch and its Limit row are checked after the switch and after the restore, and the Limit scene turns the budget on first (#3); the imported Chrome profile is checked whole as main recorded it before any Browser scene, imported by what main holds, and its menu names Sync bookmarks now (#4); the Voice scenes wait for and check the probe's words (#5); the read-only and quiet Org scenes check what tells them apart (#6). The refused code is let go before its capture; Usage has a launch of its own, its requests moved before it starts; an overlay twin reads the latched build before any step, so on master it is not reached at once. Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
SSFSKIM
added a commit
that referenced
this pull request
Nov 23, 2026
scalpel-4#2: c12-prerun's widget tour waits for each read's success on the wire before what draws it. scalpel-4#3, #4, #5: the rig's Skills scene proves a catalog card drawn; the Projects scene proves Hide from sidebar's words painted; the Installed scene proves the painted tooltip reads Installed, in frame, not Radix's mirror. scalpel-4#6: the three live start checks accept P523's spinner or the settled result, and assert the result; their tracker row goes. scalpel-3#2 is logged in the tracker. Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The rows a transcript shows under an agent's cua_repl
jscall (navigations, clicks, typing as a count, screenshots, downloads, dialogs) survived a window reload but not an app restart, because main kept them in memory only. This keeps them in the index as well (cua board #93).browser_activity: one row per activity main told the windows, keyed by the app session with a foreign key tosessions(ON DELETE CASCADE), so a session's rows go with its record. Each session keeps its last 500, as the in-memory ring does.BrowserActivityStoreskips a row this app cannot read, keeps nothing for a session with no record, and answers nothing when the index is unavailable. Migration 6 is pinned inmigrations.test.tsand recorded in the P1 interface ledger and charter X15.src/main/browser/cua/activity.tsstays the live source. It loads a session's rows from the index the first time the session is listed or appended to. Writes never wait: the rows told in one tick are written on the next turn of the event loop, after the live events went out, in one transaction. The transaction runs on the store's own connection with no busy timeout. If another connection holds the write lock, that batch is dropped at once with SQLITE_BUSY instead of stalling main for the index's 2 s timeout. A failed read or write is logged once, until a later one succeeds.jscalls'tool.use/tool.resulttimes. After a restart those calls are rebuilt from the same journal rows, with the same timestamps, so a persisted row lands under the same call. A row that cannot be placed falls back to the existing path: the latestjscall of its turn, else standalone at its time.Tests: