Repository navigation
fix: preserve step expansion state per phase - #4
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Opening a phase previously expanded its first step whenever no step was selected, including after the user deliberately collapsed every step. Steps now start collapsed, and each phase remembers its own expanded step or all-collapsed state when reopened or when switching phases.
Cost-by-agent links still open the selected agent directly. The step arrow now reports its current expanded state and labels its action as Expand or Collapse.
Release
Prepare patch release 0.9.7 with
bun run release:prepare patch, followingdocs/releasing.md. The lockfile is already current, and the release-status script confirms this version is unpublished. After merge tomainand successful checks, CI will publish the tested npm archive and create the matching GitHub tag and release.Validation
bun run checkpassed (types, lint, and formatting).bun testpassed: 128 tests, 0 failures.bun run test:packagepassed, including the production build and isolated packaged CLI startup, version, browser assets, URL, and restart checks.Note
Preserve per-phase step expansion state in run detail view
Replaces the single shared selected-agent state in main.tsx with a phase-keyed map of expanded agents. Each phase now remembers its own expanded agent, so switching phases no longer resets to the first agent. Selecting an agent from the table switches to its phase and marks that agent as expanded. The agent icon button exposes expanded/collapsed state and labels to assistive technology.
Macroscope summarized de9ad28.