Skip to content

fix(amicode): context tree never surfaces user prompt text - #83

Merged
kateebonner merged 1 commit into
local/amicodefrom
kate/context-tree-drop-prompt-text
Jul 28, 2026
Merged

fix(amicode): context tree never surfaces user prompt text#83
kateebonner merged 1 commit into
local/amicodefrom
kate/context-tree-drop-prompt-text

Conversation

@kateebonner

Copy link
Copy Markdown
Contributor

What

The "amico is thinking" context tree (top panel) labeled each turn branch with a 26-char excerpt of the user's prompt — I · optimize a CZ gate. This PR deletes that: turn branches are now anonymous roman numerals, and the tree surfaces only the context amico checks and the scripts it writes (notes / source / skills / agents — the commit-type touches it already charts).

Why

The thinking animation is a map of the agent's working context, not a transcript. Echoing the user's prompt into it duplicates what the chat already shows, and leaks conversation text into a surface that's meant to chart files and tools.

How

  • context-tree-data.tsContextTurn.title removed; turn label is just roman(n). A comment marks the no-prompt-text rule as a design decision so excerpts don't get re-added.
  • context-tree-panel.tsxturnTitle() (the prompt-text extractor) and its wiring deleted, so prompt text never reaches the tree layer at all — including the canvas labels and the keyboard/screen-reader announcements that read node.label.
  • Tests updated: data-layer suite asserts ["I", "II"] labels; engine-test fixture no longer models prompt text.

Out of scope (verified, not touched): the retired brain strip ("plate N · prompt excerpt") has no live mount, and the timeline's reasoningHeading derives from the model's reasoning headings, not the prompt.

Verification

  • bun test context-tree-data + context-tree-engine: 20/20 pass
  • tsgo typecheck: all 23 packages pass (pre-push hook)
  • npm run lint (oxlint): 0 errors

🤖 Generated with Claude Code

Turn branches in the thinking-animation context tree carried a 26-char
excerpt of the user's prompt ("I · optimize a CZ gate"). Drop the
excerpt — turns are now anonymous roman numerals, and the tree surfaces
only the context amico checks and the scripts it writes. The prompt
plumbing (ContextTurn.title, turnTitle) is removed entirely so prompt
text never reaches the tree layer.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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