Repository navigation
New chat after an upgrade's mawsd restart: launch mode asked again when the machine is heard - #403
Merged
Merged
Conversation
…ode is asked again when main says the local machine's host was heard (host.status), at once when one came while the ask was out, so an ask answered host_unavailable in the restart's window no longer leaves C10's creator, close guard, replace verdict, session actions and setup dock unregistered for the app's life; the scenario creator shares the asker (app/launch-mode.ts); cross-build gains (update, mawsd restart), where this build's app restarts the older peer's private mawsd and the sidebar's New chat must be enabled once its own serves Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
SSFSKIM
added a commit
that referenced
this pull request
Oct 31, 2026
… item 4 read by hand across the paired Macs (board #402 closed) and New chat after an upgrade (PR #403, master 2aa6390), its cause read from mawsd's log; the wave 2 ledger gains O16 M2/M5's and O7 M2's rule 5 additions; the tracker gains O4 M2's window reporter re-read Sminos-Session: GUI AI agent workspace charter#37052769 (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.
After an upgrade, New chat stayed disabled ("Not available here") until the app was reopened.
Cause.
connectSessions(src/renderer/src/sessions/connect.ts) registered the session creator, the close guard, the replace verdict, the session actions, the setup dock and the rest only inside a singlesession.launchModeinvoke, and gave up if that one call failed.session.launchModeismachine-owned, so on the daemon shape mawsd's spine serves it. At an upgrade the new app first connects to the old mawsd, then asks it to restart onto its own bundle (src/main/hosts/daemon.ts, the build check). A page call that lands in that window is answeredhost_unavailable, and New chat stays disabled for the rest of the app's life.connectScenarioSessionCreatorhad the same single-call shape.Fix. A new helper,
onLaunchMode(src/renderer/src/app/launch-mode.ts), is now used by both callers:host.status. Main sends that at each ready of the machine host (watchDaemon'sdaemon.statusread) and at each change in the spine mirror's availability. The git store'sretryUnansweredalready relies on the same signal.host.statusarrives while an ask is still out, a failure of that ask is retried immediately, because the failure may predate the host's return.takeruns once. After success it stops listening, so nothing is asked or registered twice. Disposing stops all asking.Tests.
host.statusfrom another machine being ignored, the in-flight case, disposal, and no second ask once answered.(update, mawsd restart). The older peer's app on the daemon shape leaves its private mawsd running. This build's app then meets that mawsd, has it restart onto this build, and the sidebar's New chat must be enabled once the new mawsd serves. The existing(update, daemon)scene could not host this check: there the attacher's own mawsd serves from the start, so no restart happens.Left as is (a related class, not this bug). Some startup snapshot reads are also single machine-owned calls. They do not gate a registration, but their failure in the same window has effects:
session.list,session.projects.list,session.digests,attention.list) treats the local link as "up for its life". If it fails,knownTabanswers false for local sessions at hydration, sorepairMaindrops their restored tabs.session.intent.list(sessions/store.ts) falls back to an empty list on failure and still resolves the tab retention'sready.session.deletions.list,laneA.list(local) andattention.pendingNavigatestart empty.Fixing these is a hydration-semantics change, which is for the architect to decide.
Gate: run 41204608538,
--gates all --lane hosted --class1a pool --runner macos --peer b2c3c785f, success.e2e:cross-buildran 5 passed and 1 skipped (pre-O3, which needs an O2-era peer); the new scene passed. No flaky lines.Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)