Repository navigation
feat(harness-ops): mask control-claude-code captures and launch changed plugins - #12374
Conversation
…ed plugins Screenshots and videos are redrawn from the masked screen in a second terminal, never captured live, with a <path>.txt sidecar of the text drawn. The hub gains ## Mask (account, organization, login method, session id, cwd, home paths, cost, token counts and usage-limit lines) with values from cli/account.mjs. The driver's plugins verb maps changed files to plugin dirs for one Launch each, capped by the new maxEntryPoints: 6. Index sources cover hook scripts, skill reference/ and scripts/, and agents. Refs: #11390 Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ffected.json A Launch naming <changed files> stops a run with no affected.json, so an attended run keeps the named or configured plugin dir. Refs: #11390 Co-Authored-By: Claude Opus 5.5 <[email protected]>
The shell-portability gate scans skill markdown and reads \s, \S and \w in the ## Mask regexes as GNU grep escapes. Explicit classes ([ \t], [^ \t], [A-Za-z0-9_], [0-9]) match the same screen rows, and the driver's fixture tests read these lines from SKILL.md. Refs: #11390 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Refs: #11390 Co-Authored-By: Claude Opus 5.5 <[email protected]>
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. |
|
claude-security-review reviewed Security review: PR #12374, incremental (
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ba818b9acc
ℹ️ 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".
|
claude-review reviewed Code review: changes since
|
Lane-Activity: pr-refine/fix-docs
<file> and Ready's init log carry the plugin name, so two changed plugins driving the same entry point no longer overwrite each other's captures, and the one-plugin launch is stated as the driver's choice. Refs: #11390 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Lane-Activity: pr-unblock/resolve-conflicts
…ode-masks # Conflicts: # plugins/harness-ops/README.md # plugins/harness-ops/skills/control-claude-code/driver/driver.mjs # plugins/harness-ops/skills/control-claude-code/driver/driver.test.mjs
…into feat/control-claude-code-masks # Conflicts: # plugins/harness-ops/skills/control-claude-code/driver/driver.mjs
The startup banner shows the plan tier after the model name on line 1 of every capture. Add a banner mask line and assert both fixtures lose the tier and keep the model. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Post-merge mutation testingKilled 3, survived 3, timeout 0, no coverage 1, invalid 0, not run 0.
Surviving mutants
The run's summary has the full report. |
Closes #11390
Summary
control-claude-code masks account, usage and cwd text in its screenshots and recordings, writes
<file>.txtsidecars of the text drawn, and launches one session per changed plugin, capped bymaxEntryPoints(6).Fix
## Maskin the hub: email, organization, login method, session id, cwd, home path, usage-limit, usage-meter, usage-reset, cost and token-usage lines, as of Claude Code 2.1.316, from rewritten fixtures underdriver/fixtures/, withvalues:fromcli/account.mjs(the signed-in email and organization).screenshotandvideonever capture the live screen: the driver masks the live cells, redraws them (colors kept) in a second tui-test terminal of the same size, and captures that only after itstext()equals the masked text exactly; otherwise the command fails with nothing written.driver.mjs plugins <changed files>prints one plugin dir per changed plugin, at mostmaxEntryPoints, naming each one left out on stderr; Launch runs once per line. Run only when the run directory holdsaffected.json.sourcesnow cover hook scripts, skillreference/andscripts/, and agents (edited by hand).Verification
tui-test buffer-access probe (first work item)
Setup:
@microsoft/tui-test0.1.1 (the driver's lockfile), Claude Code 2.1.316, WSL2 Linux, the subscription login with neitherCLAUDE_CODE_OAUTH_TOKENnorANTHROPIC_API_KEYset. Real captures stayed under the worktree's ignored.work/and were deleted after the run.text()returned the 40 rows of the 120x40 screen andcells(0, 0, 120, 40)returned 4800 cells, each with its character, colors and attributesscreenshot()andstartRecording()take onlyfull,zoom,background,transparent(plusformat,fps,speed,idleTimeLimitfor a recording), perdist/client.d.ts:96-111; the engine always renders the live screenFallback used (Load-bearing assumption row 4, "render PNG from masked text"): the mirror terminal described under Fix. Video goes through the same mirror, redrawn every 250 ms while it records, so a video holds only masked frames.
End to end through the driver's verbs (
launch,wait-for,type,screenshot,record start/stop,stop) on/statusand/usage: the PNGs, the MP4 and their sidecars showed every account, organization, login method, session id, working directory, cost, token count, usage meter, percentage and reset time replaced by*. A count of the real account's email, home path, session id and usage figures in the three sidecars found 0.Tests
driver.test.mjs: 51 tests pass, including the Sanity Check case (a fixture buffer holding[email protected]is absent from the masked buffer passed to the renderer and from the sidecar) and themaxEntryPointscap.cli/account.mjs(UNVERIFIED).Related
.changes/harness-ops/feat-control-claude-code-masks-a046a0fe.md; the version bump lands with the release PR.🤖 Generated with Claude Code