Skip to content

Claude Code. Any Model. The most powerful AI coding agent now speaks every language.

docs(team): say recent rows reach the calling agent, not stay local

Jack Rudenko34519f80c330
diff --git a/ROADMAP.md b/ROADMAP.md
index 9435461e..0af25029 100644
--- a/ROADMAP.md
+++ b/ROADMAP.md
@@ -659,6 +659,12 @@ that never settled after its background agents finished mid-turn was fixed in 11
and no work done. A caller reading only the state takes it for a finished task. Trigger: find
where the Responses stream converts a mid-stream `error` event into a text block, and check it
on 10.7.0 first.
+- **`redactSecrets` misses three credential shapes.** On 2026-10-20 `redact.ts` left these
+ unmasked: `x-api-key: <value>` in a header, `https://user:password@host`, and a lowercase
+ `?token=<value>` query (`Authorization: Bearer <value>` is masked). `SlotRow.recent` passes a
+ Bash command or WebFetch url through it; the same text is already on the child's screen via
+ `capture_session`, so `recent` adds no exposure, but every caller of `redactSecrets` shares
+ the gap. Trigger: next change to `redact.ts`, or a report of a leaked key.
---
diff --git a/ai-docs/reports/2026-10-16-slotrow-recent-validation.md b/ai-docs/reports/2026-10-16-slotrow-recent-validation.md
index ce707fe6..8388dae3 100644
--- a/ai-docs/reports/2026-10-16-slotrow-recent-validation.md
+++ b/ai-docs/reports/2026-10-16-slotrow-recent-validation.md
@@ -36,8 +36,14 @@ What this shows:
- A RUNNING row carries the steps so far; a caller does not wait for settle to see the turn move.
- A COMPLETED row keeps the turn's steps (the field is not cleared at settle).
- A tool step's summary is the ONE named target field (`file_path` for Read), never the whole
- input and never the tool result. Paths keep the home directory, by design: the rows stay on
- this machine and the path is the point.
+ input and never the tool result. Paths keep the home directory, by design: the rows go to
+ the calling agent, which already reads the same paths on the child's screen through
+ `capture_session`.
+- `redactSecrets` masks only the credential shapes it knows. On 2026-10-20 these passed through
+ unmasked: `x-api-key: <value>` in a header, `https://user:password@host`, and a lowercase
+ `?token=<value>` query. `Authorization: Bearer <value>` was masked. The same text is visible
+ on the screen through `capture_session`, so `recent` adds no new exposure; the gap is
+ `redact.ts`'s, recorded in `ROADMAP.md`.
- `at` is the transcript record's own timestamp, so steps order by when Claude Code wrote them,
not by when claudish polled.
diff --git a/packages/cli/src/pane/slot-steps.ts b/packages/cli/src/pane/slot-steps.ts
index 152634f0..7c65755b 100644
--- a/packages/cli/src/pane/slot-steps.ts
+++ b/packages/cli/src/pane/slot-steps.ts
@@ -5,8 +5,10 @@
*
* A summary is ONE line taken from ONE named field. A tool step never carries the
* whole input and never anything from a tool result: a Bash command or a WebFetch url
- * can hold a token, so even the named field goes through `redactSecrets`. Paths keep
- * the home directory: the rows stay on this machine, and the path is the point.
+ * can hold a token, so even the named field goes through `redactSecrets`, which masks
+ * only the credential shapes it knows. Paths keep the home directory: the rows go to the
+ * calling agent, which reads the same paths on the child's screen through
+ * `capture_session`, and the path is the point.
*/
import { redactSecrets } from "../redact.js";