The terminal area was a solid black rectangle inside a panel that was not,
which read as a surface the plugin had chosen rather than the emulator
showing through.
Two independent causes, both needed:
1. CSS Modules hashed xterm's own class names. `.screen .xterm-viewport`
compiled to `.o8IiwG_screen .o8IiwG_xterm-viewport`, while the real DOM
carries xterm's unhashed `.xterm-viewport` — the rule never matched
anything. Wrapped in `:global()`.
2. xterm.css ships `.xterm .xterm-viewport { background-color: #000 }` and
injects that sheet when `open()` runs, after this module. Matching its
specificity (0,2,0) therefore loses on source order every time, so the
selector climbs to 0,3,0 with the extra `.xterm`. Measured in Chromium:
0,2,0 leaves `rgb(0, 0, 0)`, 0,3,0 resolves to `rgba(0, 0, 0, 0)`.
`.screen` itself also stops painting `--dsw-alias-bg-base`, which was a second
surface inside the panel.
No `!important` (outranking by specificity is enough) and no
`allowTransparency` (measured no effect on the viewport background under the
DOM renderer xterm 6 uses by default).
The host's session list hides every subagent-origin row in ALL archive filters (sessionVisible() returns false before the filter), and its unarchive control only lives on those rows. Archiving a side conversation is therefore a one-way door with no entry left to recover it, so the composer-bar action is disabled for any bound session the list cannot show again, with a hover tip (all 21 dictionaries) explaining why and pointing at Save as new session. The handler keeps the same guard.
The archive-and-rebind path stays covered for a host-visible binding.
The gate read an absent settings row (the host only lists entries whose fiber is ACTIVE) as the schema default false and unregistered a live tool mid-session. Read the switch tri-state instead: only an explicit boolean is a decision, so an absent row or a thrown read keeps the current registration.
Also re-evaluate right after a settings write and after the loader settles, so enabling the feature registers the tool for the first turn instead of waiting for an unrelated settings.get.
Hidden tab types (the built-in diff page, dsh-remote's dsh-remote:file)
have no + menu row and no native guide entry, yet the side-card inventory
still gave them an enable switch. Turning one off changed nothing in the
sidebar and only made openTab silently refuse that type - which the
reporter saw as "remote:file cannot be turned off / git:diff does
nothing", and dsh-remote saw as "remote files stop opening".
- SideCardSection: the inventory skips hidden types (the count badge
follows); tabOrder becomes the order-only tabInventory.
- service.isTabEnabled: a hidden type is always enabled, so a
tabsEnabled[id] = false written by an older build cannot keep refusing
its programmatic opens.
- docs/external-plugin-guide.md and CHANGELOG describe the contract; the
two new specs fail on the previous code.
The guard still substituted the repository top level whenever the caller's
base spelling was not lexically under git's canonical top (macOS /var vs
/private/var, symlinked workspaces), so #1070's argument-order swap only
covered the lexically-canonical case - its own subdirectory test is red on
macOS.
Make the session cwd authoritative: canonicalize it once with realpath (so
containment against git's canonical paths still works and nested-worktree
adoption stays correct, #952) and never substitute the repository top.
Linked-worktree following is unchanged.
Refs #1024#1080#1070
README.md and README_ZH.md are the same bullet list line for line; PR #972 only updated the English copy. Mirror the CSS/JS/JSON/fonts/wasm content-type clause in Chinese so the pair does not drift.
The More Actions menu's repo/worktree rows open nested submenus, but this button-anchored entry never called useSubmenuFlip — the body attribute layout.css consumes was absent, so even with #955's unclosed media query fixed the submenus still opened past the right edge of the docked sidebar.
Keep the trigger's measured corner in the menu state (a boolean cannot feed the coordinate-based hook, and a keyboard activation has no cursor point) and hand it to the same hook the file-tree row menu uses. The new test opens the real menu on a mocked right-edge trigger and pins the 'down left' tokens plus their removal on close.