Repository navigation
cua #103: persistent browser control strip and inert extension feedback - #9
Conversation
…acker closures
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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e2a0a9b5d7
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| id: `action:${action.extensionId}`, | ||
| label: action.title, | ||
| ...(action.hasPopup ? { click: () => on.open(action.extensionId) } : { enabled: false }), | ||
| ...(action.hasPopup && !action.inert ? { click: () => on.open(action.extensionId) } : { enabled: false }), |
There was a problem hiding this comment.
Expose the failure reason in the folded extensions menu
When the toolbar is narrow enough to fold its actions, a background-failed extension is rendered only as a disabled item bearing action.title, exactly like an extension that merely has no popup. Because a disabled native menu item cannot be clicked or right-clicked, the new action.inert explanation is unreachable from this toolbar state, including the 380 px panel exercised by the change. Include the failure sentence in the folded menu item or provide an enabled status/details entry so users can distinguish “background failed” from “no popup.”
Useful? React with 👍 / 👎.
| const action = this.deps.actions.find(partition, extensionId); | ||
| if (!action?.popupUrl) return; | ||
| if (!action?.popupUrl || action.inert) return; |
There was a problem hiding this comment.
Close popups when a newly loaded background is marked failed
On a relaunch where the persisted record says an extension was healthy but its newly loaded background fails, ExtensionsLoader releases the first page immediately after loadExtension and writes the failed status only after its settle delay. During that interval this one-time check still sees the old non-inert record and can open the popup; when the later profile update marks the action inert, it only invalidates the action query and ExtensionPopups has no listener that closes the already-open view. Recheck open popups when the background status changes, or defer opening until the current load has settled, so a popup cannot remain usable after its action becomes inert.
Useful? React with 👍 / 👎.
…52 amendment (socket peer authentication by process ancestry), the P1 ledger's §6 clause for native/peer-auth and its §5 row's inert field, the charter's §19 line
Summary
Implements the owner's 2026-10-10 rulings for cua board #103.
inert: string | nulltobrowser.extensions.actionsitems, carrying the same failed-background sentence as the import report. Show failed-background actions muted; their right-click menu starts with the disabled failure sentence. Declared popups cannot open while an action is inert, including through IPC or a stale menu.All four original tracker rows (L61/L80/L97/L103 at master
9cabdf69) remain untouched; appended dated closure rows name each original date, owner, opening words, and cua board #103. Implementation is committed per item, with any verification corrections in a separate follow-up. Light remains the default; no theme literals, extension API shims, ledger edits, owner Chrome reads, bookmark logging, real system browser launches, or owner MAWS launches were added.The tests use scratch MAWS user data and the synthetic Chrome fixture. Its existing failing worker now also declares a popup, so the regression distinguishes a failed background from merely having no popup. Red-first unit runs reproduced the missing compact label, ownership persistence, failure field/menu/icon, and popup-boundary guards.
Screenshots
Committed narrow evidence at
docs/doperpowers/evidence/cua-103/human-control-380-{light,dark}.png; the browser e2e also attaches current narrow and wide shots in both themes.Review
Independent medium review found one resource-lifetime regression: persistent human ownership must not permanently protect hidden, lease-free tabs from the count and memory caps. A fix wave reused the takeover-grace predicate for reclamation, retained every active-resource guard and visible ownership through suspension, and added red-first real-store count/protection/memory tests. Focused independent re-verification found no material issues.
Commits
917e8067cua gate: the Mac's shared instances, inert until listed (ci-kit mac-lane concurrency, M2) #103 item 1: close denied-permissions taste row by owner ruling0f732d9bcua gate: the Mac's shared instances, inert until listed (ci-kit mac-lane concurrency, M2) #103 item 2: collapse human control at narrow browser widthsd2063d7fcua gate: the Mac's shared instances, inert until listed (ci-kit mac-lane concurrency, M2) #103 item 3: keep human ownership in a persistent accent stripa2e40258cua gate: the Mac's shared instances, inert until listed (ci-kit mac-lane concurrency, M2) #103 item 4: surface imported extension background failures in action chrome175406c0cua gate: the Mac's shared instances, inert until listed (ci-kit mac-lane concurrency, M2) #103 verification: reclaim expired human-owned tabs and append tracker closurese2a0a9b5cua gate: the Mac's shared instances, inert until listed (ci-kit mac-lane concurrency, M2) #103 verification: avoid hex-like board reference in renderer commentGates
pnpm typecheck && pnpm lint && pnpm test(exit 0)pnpm e2e:browser(exit 0)pnpm e2e:browser-chrome(exit 0)pnpm e2e:browser-cua(exit 0)Known flaky PTY suite, run alone (exit 0)
The first full unit run exposed the renderer comment
#103to the strict hex-token scanner (fixed by a comment-only spelling change) and the known PTY foreground-job flake. The final full chain and final isolated PTY run are clean. The default gate leaves the existingMAWS_PERF=1opt-in performance test skipped.All final e2e groups ran one at a time as
/tmp/maws-review/waitload20.sh && /tmp/maws-review/with-slot.sh pnpm -C /Users/new/Developer/GitHub/MAWS-wt-103 <script>, withMAWS_E2E_QUIET=1exported by the wrapper. The earlier unquiet chain was stopped and replaced. No scene required a visible window.for maws-fe
Extend ledger §5's cua #90 extensions row with:
cua #103: browser.extensions.actions[].inert?: string | null carries the import report's background-failure sentence (null/absent: no known failure); failed-background actions are muted and non-activating, with that sentence first and disabled in the action's right-click menu.Deliberate exclusions
No per-permission dismissal (owner ruled to keep the existing banner); no missing Chrome API implementation (owner chose honest inert-state presentation); the ledger is left to maws-fe, using the one-line extension above. Do not merge this PR.