Skip to content

cua #103: persistent browser control strip and inert extension feedback - #9

Merged
SSFSKIM merged 6 commits into
masterfrom
103-chrome-taste
Oct 10, 2026
Merged

SSFSKIM merged 6 commits into
masterfrom
103-chrome-taste

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Oct 10, 2026

Copy link
Copy Markdown
Owner

Summary

Implements the owner's 2026-10-10 rulings for cua board #103.

  • Item 1: keep the denied-permissions banner and shared Dismiss unchanged; close its tracker row by ruling only.
  • Item 2: below 480 px, collapse human ownership to the person icon and Hand back. The 380 px panel scene checks every visible chrome control for clipping and the navigation controls for overlap.
  • Item 3: put human ownership in an accent-token strip below navigation. Keep it until Hand back or the agent's next acting command resumes. The existing 3 s takeover grace still permits commands after recent human input; expiry no longer clears the visible human ownership state.
  • Item 4: add optional inert: string | null to browser.extensions.actions items, 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

Gates

pnpm typecheck && pnpm lint && pnpm test (exit 0)

 Test Files  805 passed | 1 skipped (806)
      Tests  11428 passed | 1 skipped (11429)
Type Errors  no errors
   Start at  02:39:29
   Duration  130.51s (tests 57%, import 20%, transform 13%, environment 10%)

pnpm e2e:browser (exit 0)


  9 passed (1.9m)

pnpm e2e:browser-chrome (exit 0)


  7 passed (26.9s)

pnpm e2e:browser-cua (exit 0)


  5 passed (23.4s)

Known flaky PTY suite, run alone (exit 0)

 Test Files  1 passed (1)
      Tests  6 passed (6)
Type Errors  no errors
   Start at  02:43:50
   Duration  2.46s (tests 94%, transform 3%, import 2%)

The first full unit run exposed the renderer comment #103 to 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 existing MAWS_PERF=1 opt-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>, with MAWS_E2E_QUIET=1 exported 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.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 10, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-10T10:02:57.072509Z e2a0a9b PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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 }),

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

Comment on lines 134 to +135
const action = this.deps.actions.find(partition, extensionId);
if (!action?.popupUrl) return;
if (!action?.popupUrl || action.inert) return;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

SSFSKIM added a commit that referenced this pull request Oct 10, 2026
…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
SSFSKIM added a commit that referenced this pull request Oct 10, 2026
cua #103 e2e: the 380 px human-control case trusts the test process before connecting as the fake host (PR #7 and #9 crossed)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant