Repository navigation
P5 O9: lane A shows the permission mode the terminal session reported (sminos 1.27.14) - #355
Merged
Merged
Conversation
… (sminos 1.27.14) The bridge now carries permissionMode, permissionModeAt and permissionModeFrom on its heartbeat's state and on read status. Main reads them where lane A already listens: the local driver's state stream folds the heartbeat's (kept across a fresh stream's snapshot, which carries none, until the next heartbeat), and the remote adapter's status read carries them. Both parse through @shared/lane-a/mode and put LaneAState.mode only from a bridge of sminos 1.27.14 or later. The Mode chip names the reported mode with how long ago on its title, Session info's Mode row names it with its age (a remote session's Session info gains that row), and neither sets a mode. With no report, or an older bridge, both still say Not reported by the terminal session. The fake bridge gains setMode and heartbeat, the fake plane a per-session status read. Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
… read for Review fix: a terminal session resumed in a new process under the same engine session id kept showing the earlier process's mode, since the remote adapter re-reads read status only at a watch's first snapshot, after a model change and at a main-loop step-end. The status read now records the presence's launch it asked under, and the fold shows its mode only while the presence names that launch; the new process reads Not reported until a status read under its launch. No read is added. 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 29, 2026
…ion reports (#355); the mode row closed, a remote session's mode freshness row opened, the engine-host ipc flake's second sighting 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.
Lane A's Mode chip and Session info said "Not reported by the terminal session" because the bridge had no live permission mode. sminos 1.27.14 (doperpowers #445, board #160) now carries
permissionMode,permissionModeAtandpermissionModeFromon the heartbeat'sstateand onread status. This PR reads them, using only what lane A already consumes.What a person sees
defaultis "Manual"). Its title reads "Reported 2 minutes ago · A terminal session's mode is changed in the terminal". Session info's Mode row reads "Plan · Reported 2 minutes ago". The menu checks the reported mode, and every choice stays closed: MAWS still sets no mode on a terminal session.How
src/shared/lane-a/mode.tsdoes the shared work.modeOfparses the three fields: all three must be present and well-typed, and the word must be one of the engine's six modes.reportsModeis the version guard (capabilities.sminos≥ 1.27.14).LaneAState.modeis new and nullable.SessionFoldtakes the mode from each heartbeat; a heartbeat with no fields clears it. The mode is kept across a fresh stream's snapshot, which carries none, until the next heartbeat (5 s). The driver's state carries it only from a bridge that reports it.read statusthe adapter already makes: at a watch's first snapshot, after a model change, and at a main-loop step-end at most every 10 s. No read is added. The status read records the launch it was asked under. Its mode shows only while the presence still names that launch, so a session resumed in a new process reads "Not reported" until a read under the new launch (review fix, 7839ead).ModeBinding.reportedAton the chip's binding. The chip's title ticks every 30 s while a reported mode is shown. Session info reads the same binding.Tests: written to fail first.
setModeandheartbeat. Itsread statusnow carries the fields.e2e:lane-ascene: none reported, then Plan, then a switch to Manual, on the chip, in Session info and in the menu.Known limits
Gates: run 40895586375 green on 7839ead (static, unit, probes, e2e:lane-a, e2e:side; class 1a on the pool, e2e on macOS). Its tree equals the head's, and its flaky count is 0. An earlier run on 18e9db6 failed one unit shard on the known
src/engine-host/ipc.test.tsartifactScope flake (tech-debt row 2026-10-28 "unit flakes"). ci-gate warned thate2e:deliveryande2e:desk-web-hubreachsrc/shared/ipc/schema/lane-a.ts; neither ran.Review: doperpowers:reviewer-medium on 42c0ffa..18e9db6 found one P2 (the remote mode outlived a launch change). It is fixed in 7839ead, and the reviewer re-checked the fix as correct.
Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)