pi-mono/packages/coding-agent/src/core
Li Yang 1675824ed3
Add active path highlighting in html exports (#929)
* fix(coding-agent): HTML export sidebar click scrolls instead of truncating branch

Previously, clicking a message in the sidebar tree would set that message
as the new leaf, causing getPath() to only return messages up to that point
and hiding all messages below it.

Now handleTreeNodeClick() checks if the clicked entry is on the current path:
- If yes: just scrolls to it without re-rendering
- If no: finds the actual leaf of that branch and navigates to it, then
  scrolls to the clicked message

Added childrenMap for parent->children lookup and findBranchLeaf() to
traverse down to a branch's leaf.

* fix(coding-agent): HTML export sidebar click scrolls instead of truncating branch

Previously, clicking a message in the sidebar tree would set that message
as the new leaf, causing getPath() to only return messages up to that point
and hiding all messages below it.

Now handleTreeNodeClick() checks if the clicked entry is on the current path:
- If yes: scrolls to it and updates the active marker
- If no: finds the branch's leaf, navigates to it, then scrolls to clicked message

Adds currentTargetId to track the selected entry separately from currentLeafId
(which branch to display), so the active marker follows user selection.

* most recent path wins

* reuse method

* revert

* feat(coding-agent): highlight active path in HTML export sidebar

- Add subtle accent background tint to in-path nodes
- Dim off-path nodes to 50% opacity (restore on hover)
- Makes current branch visually distinct in tree navigation

* docs(coding-agent): move changelog entry to Unreleased and add attribution

* chore(coding-agent): remove dead code and fix changelog attribution

- Remove unused childrenMap, findBranchLeaf, handleTreeNodeClick, scrollToEntry
- Split changelog entry: navigation (#853 by @mitsuhiko), highlighting (#929 by @hewliyang)
2026-01-25 19:25:44 +01:00
..
compaction feat(coding-agent): add extension compaction helpers 2026-01-17 11:40:39 +01:00
export-html Add active path highlighting in html exports (#929) 2026-01-25 19:25:44 +01:00
extensions feat: custom provider support with streamSimple 2026-01-24 23:15:11 +01:00
tools fix(coding-agent): improve read tool description for full file reads 2026-01-24 23:15:11 +01:00
agent-session.ts feat: custom provider support with streamSimple 2026-01-24 23:15:11 +01:00
auth-storage.ts refactor(oauth): add provider registry 2026-01-24 23:15:11 +01:00
bash-executor.ts feat(coding-agent): ResourceLoader, package management, and /reload command (#645) 2026-01-22 13:49:38 +01:00
diagnostics.ts refactor(coding-agent): unify SkillWarning and ResourceDiagnostic 2026-01-24 00:45:01 +01:00
event-bus.ts Fix event bus async error handling, clear pending messages on session switch, improve SDK docs 2026-01-04 22:04:50 +01:00
exec.ts Merge hooks and custom-tools into unified extensions system (#454) 2026-01-05 01:43:35 +01:00
footer-data-provider.ts cheers 2026-01-23 15:05:08 +01:00
index.ts Rename /branch command to /fork 2026-01-11 23:12:31 +01:00
keybindings.ts refactor: use configurable keybindings for all UI hints (#724) 2026-01-14 15:42:03 +01:00
messages.ts Merge hooks and custom-tools into unified extensions system (#454) 2026-01-05 01:43:35 +01:00
model-registry.ts feat(ai): add OpenRouter provider routing support 2026-01-25 03:34:49 +01:00
model-resolver.ts add Azure OpenAI Responses provider with deployment-aware model mapping 2026-01-24 12:04:34 +01:00
package-manager.ts feat(coding-agent): resolve resources with enabled state 2026-01-25 02:13:24 +01:00
prompt-templates.ts feat(coding-agent): refine resource metadata and display 2026-01-24 02:46:08 +01:00
resource-loader.ts feat(coding-agent): resolve resources with enabled state 2026-01-25 02:13:24 +01:00
sdk.ts feat(coding-agent): ResourceLoader, package management, and /reload command (#645) 2026-01-22 13:49:38 +01:00
session-manager.ts Fixes #933 2026-01-25 02:47:17 +01:00
settings-manager.ts feat(coding-agent): add pi config TUI to manage resources 2026-01-25 03:12:21 +01:00
skills.ts feat(coding-agent): support disable-model-invocation frontmatter for skills 2026-01-24 03:34:40 +01:00
system-prompt.ts fix(coding-agent): only list built-in tools in system prompt 2026-01-23 00:54:30 +01:00
timings.ts Release v0.27.1 2025-12-22 19:28:26 +01:00