Repository navigation
fix(mcp): keep visible selections when hidden rows are selected - #2706
Cynnamoroll wants to merge 2 commits into
Conversation
Exclude hidden subtrees from the mark cap used by folded observations. Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
|
No actionable comments were generated in the recent review. Walkthrough
Change: Bug fix · Severity of issue fixed: Medium Merge Risk:
|
There was a problem hiding this comment.
All reported issues were addressed across 6 files
Reply with feedback, questions, or to request a fix.
View guided diff | Re-trigger cubic
Docs previewThe site runs each docs page as code, so a fork's pull request is previewed only after a maintainer reads it. To preview 3535139, comment |
Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
|
/ready |
Why
In a long list, three collapsed selected rows can make MCP omit the only visible selected row. The app still reports that row as selected in the full tree.
What
Hidden rows no longer count toward the three-mark limit that protects a visible selection from folding. The final output cap and full
screen.tree()output are unchanged. No API change.How it works
Skip hidden subtrees when counting marks in
packages/core/src/agent/screen-fold.ts:126.Issue
Fixes #2704
Verified
Ran it locally: yes
The Electron reproduction left the control unchanged. The affected view still reported six hidden nodes.
Message 15 [selected]in both MCP responses.Not run: rendered docs screenshots. The docs checks ran.
Commands and output
At
3535139,pnpm checkand all 21 folding unit tests passed again. This follow-up only clarifies the existing output cap. Output below was captured at03d52ca:The probe exited 0 on both checkouts. See #2704 for setup commands. The main probe used
c19837e;1abeb95adds only Japanese and Simplified Chinese translation updates.An earlier workspace-wide
pnpm testdid not pass. It ran alongside a rebuild and reported missing build files, an offline MCP install failure, and a CLI cancellation assertion. The isolated package unit run above passed, including that cancellation test.Checklist
pnpm changeset) for any change to a published package, or the change is testbed, docs, or CI only.!, the changeset body names what breaks and what replaces it, and the deprecation warning landed a window earlier (stability policy in CONTRIBUTING.md).docs/**/*.mdxpage for the behavior, andskills/e2e/if the skill describes it..d.tsreviewed,tests/types/sdk-types.tsupdated; wire change edits the schema and both fixtures.e2e/engine): changesets fore2e,@e2e-dev/web, and@e2e-dev/mobile.Summary by CodeRabbit