Decisions
Renamed from ChainOfThought to ChainOfThought (2026-10-12), at Erika's call. An earlier note argued for ChainOfThought because two references were tool logs; the new variants (below) are how ChainOfThought now covers both reasoning and tool use. Docs should still mention "agent steps" and "tool calls" so either search finds it.
variant:steps(default) |reasoning|search|coding. It sets the body:stepsis rows with status icons;reasoningis running text (paragraphs, secondary color, adivinstead of anol);searchis a quiet query row (magnifying glass), result rows with a bold title and the domain as secondary text, and a quiet "+N more" row;codingis rows with a bold verb and code-font secondary text, with+/-diff counts in success and critical colors (pds-timeline-item__added,__removed). Rows are stillTimelineItem; the variant only adds styling, so the body is still the consumer's content.Name: ChainOfThought, not ChainOfThought. Two of three references are tool logs, and "chain of thought" implies the steps are the model's real reasoning. Mention both terms in the docs so either search finds it.
Separate pattern, ThinkingState stays the primitive. The summary line is a
ThinkingStatepassed in thesummaryslot, so the finished wording ("Thought for 4 seconds") is just a ThinkingState withstate='completed'. ThinkingState stays non-interactive and usable alone while there are no steps yet.Built on native
<details>, notExpansionPanel.ExpansionPanelis a bordered card with a space-between chevron and a divider when open. The references have a borderless, left-aligned summary with the chevron beside the label and a rule down the left of the steps. Same markup approach (details/summary, state mirrored in React so the chevron rotates), different look.TimelineItemis its own primitive (proposals/Timeline/), andChainOfThoughtcomposes it.ChainOfThoughtwraps each child in an<li>, so list semantics belong to the list and the step renders adivthat also works inline. Steps are children, not a data array.Uses the local
Spinner(foragentic) andIconwrapper; the port swaps in the real ones. Storybook:Proposals/Chain of Thought, taggednew-pattern.Open: reasoning text. Reference 2 puts italic model reasoning between tool calls. Not designed; likely a step type with no status icon.
Open: diff counts (
+74 -41in the Edit row) are plain text now; green and red would need a small part or tokens-only spans.Open: motion. Steps appear instantly when added. Does a new step animate in? Does the list auto-open while working and collapse when done?
Open: nested spacing and long lists. No max-height or scroll; decide when steps can run to dozens.
Open: keyboard. Summary toggles with Enter and Space (native); not yet checked by eye.
Step status, secondary text, detail and the configurable icon are decided in
../Timeline/decisions.md.Open: result favicons. Search results use a
globeicon; the reference shows each site's colored favicon. Aleadingslot onTimelineItemwould take an image.Open: "+7 more" is a plain quiet row; should it be a link or button that expands the rest?
Open: reasoning variant is plain text; italic, links and markdown aren't handled.
sizeprop:s(default) |m, for the whole block.sis a 14px summary over 12px rows and reasoning text;mis 16px over 14px. Row icons follow the text size (1em); the active spinner stays at its smallest size. 12px is small for reasoning paragraphs and result titles, somis the readable option.The summary is rendered by Chain of Thought, not passed in. It takes
label,isActive,time,showTimerandiconNameand renders aThinkingStateat the samesize, so the size hierarchy is enforced. The cost: no custom summary.isActivedefaults tofalsehere (a record is usually finished), unlike ThinkingState'strue; set it while the agent works. Rows read the size from the list (see the 2026-10-19 note below); a standalone Timeline Item inherits the surrounding text.expandWhenActive(defaultfalse): opens the list whileisActiveis true and closes it when the agent finishes. The first time the user opens or closes it themselves, the automatic behavior stops for that instance, so it never fights them.isOpenis still the initial state only. The Working story turns it on; flipisActivein the controls to see it collapse.ThinkingState now takes
state, notisActive. Chain of Thought keeps its ownisActiveboolean and maps it toactive/completed. Open: should a stopped run show here too (stoppedstate passed through)?
Semantic type classes instead of font primitives (2026-10-19)
- Decision: The list takes the size one step below the summary:
Timeline size(xsats,satm), or apds-copy-*class on the reasoning list. The root no longer sets a font. - Why: The designer asked for semantic tokens over primitives where they exist; the semantic layer for type is the
pds-copy-*classes. The classes are!important, so they only go on elements whose own font properties nothing else overrides. A child that sets its own weight (the medium labels in Chain of Thought) still wins, because the!importantonly beats rules on the same element, not inheritance. Computed sizes match before the change (summary 14px, rows 12px ats; divider 14px / 12px). - Port impact: drops
--timeline-item-font-size; relies onTimeline'ssizeprop.
The summary uses "Thought for" plus the timer (2026-10-21)
- Decision: the finished summary is the label "Thought for" with
time(for example4s) andshowTimer, in the stories and the Chat with an agent recipe, instead of a label with the duration inside it. See the Thinking State decision of the same date (the time is read once the run is done). - Port impact: none beyond the Thinking State change.
The finished summary is one label (2026-11-20)
- Decision: a finished run passes one
label("Thought for 4s") withshowTimeroff, in the stories, the.mdxand the Chat with an agent recipe (ChatWithAgent.stories.tsx).timeandshowTimerare for a live run only. Supersedes "The summary uses 'Thought for' plus the timer (2026-10-21)" above. No prop was removed. - Why: the shipped
ThinkingState(ThinkingState.tsx, TSDoc ontime) says a finished run puts the whole phrase inlabeland turnsshowTimeroff;timeis hidden from screen readers while active. The 2026-10-21 split disagreed with what PDS shipped. - Visible change, for the designer to accept: the number in a finished summary loses the smaller, quieter code-font style of the timer (
thinking-state.css,.pds-thinking-state__time). - Port impact: none beyond using one label. A language that puts the number first can now reorder it inside the label.
Cleanups before handoff (2026-11-20)
- Decision:
iconNameis typed with the package'sAgenticIcon(exported,custom-types.tsx), replacing the inline'sparklesSolid' | 'zappy'union. Props in the interface are alphabetical (showTimerbeforesize). TheisOpenTSDoc says "Initial open state". TheSlotstory is labelled story-only.showTimerandtimegot argTypes. - Why: toolkit conventions (shared types, alphabetical props) and a TSDoc that matched the uncontrolled behavior.
- Port impact: none; the types are the same values.