Skip to content

Bug: collapsing the selected skill asset folder removes the bundle tree from keyboard navigation #3756

Closed

Description

@yannickmonney

Bug: collapsing the selected skill asset folder removes the bundle tree from keyboard navigation

Suggested severity: P2.

The skill bundle tree gives tabIndex=0 only to the selected file. When its parent folder is collapsed, that row unmounts and every remaining tree item has tabIndex=-1. After the user tabs out, Tab/Shift+Tab can no longer enter the tree.

Reproduction

  1. Enter a skill bundle tree with Tab. Use ArrowDown to a text asset under references/, then Enter to select it.
  2. Press ArrowLeft to focus references/; press ArrowLeft again to collapse it.
  3. Press Tab to the next control, then Shift+Tab.
  4. Focus skips the whole tree. DOM inspection finds zero remaining tree items with tabIndex=0.

Expected: collapsing the selected/focused descendant must leave a visible item, normally the collapsing folder, as the tree's keyboard entry point. Keyboard users must be able to return to the tree and select another file.

Controls: before collapse the selected text asset is the entry point and arrow/Enter navigation works. Pointer expansion restores that selected child's tab stop. The sequence is executed with actual user-event Tab, ArrowDown, Enter and ArrowLeft; it does not depend on programmatic focus to reach the asset.

Root and acceptance

TreeRowButton derives the only tab stop from isActive, while directories always receive isActive=false. Focus and selection need separate state; collapsing the selected file's ancestor currently leaves neither a visible selected entry nor a roving focus entry.

  • Maintain exactly one visible tree entry point across selection and expansion changes.
  • Collapsing a focused/selected descendant promotes the appropriate ancestor and preserves meaningful focus.
  • Verify Tab out/back, arrows, Enter, pointer selection and reopening.

Source:

Deduplication

No matching bundle-tree keyboard report found. #3559 concerns task-list row activation, #3557 task dialog focus, #3715 menu-to-dialog focus, and #3743 date clearing. The separate expansion-persistence candidate is caused by its hydration effect; this defect still occurs during one mount with storage disabled. Full-body searches covered all 1,065 all-state issues in issues-final.json, the 102 baseline records and the accepted additional-finding ledger. Manual and repository debt registers contain no equivalent accepted gap. See dedup-final.json.

Evidence and limits

Executed editors.probe.test.tsx with vitest.config.ts: six observation/control cases passed. Evidence is retained in component-probe.log and component-observations.json under the global tale-1000-additional/editors-next notes directory. These assertions verify the observed defects and controls; they are not a claim that the product passed these behaviors.

The real skill components, React Query, skill hooks, adapter registry, HTTP client and i18n providers run in jsdom. Read/save cases call the actual existing localhost:3078 app routes, authenticated as the local synthetic audit owner, on a newly created owned skill. The fixture is created by a native skill PUT; text assets are placed only inside that new fixture's bundle. The fetch dispatcher accepts only that skill's detail, assets and write URLs. Explicit faults are 503 reads or a 403 write; all other skill responses come from the native local backend. The session-presence hook, empty team directory and toast sink are mocked. The normal repository jsdom setup mocks layout observers, scrolling, matchMedia and canvas. No browser-layout, mobile, hardware screen-reader, provider, tool execution or production claim is made.

Source is 480ee6a3e6d33c3414a2c0f8a52fded1ddc4ca2d. Compared with fetched main 300bcf076ac9d629518c108c363130fcc733a6b9: the detail, metadata, icon and bundle-tree components are byte-identical. The asset-viewer diff changes gutter/highlight styling, not the read-error branch. No repository source changed.

Replay (from the detached audit worktree's platform directory):

/Users/yannick/.npm/_npx/22f2fe8d8bc13000/node_modules/.bin/bun x vitest run --config /Users/yannick/.codex/notes/tale-1000-additional/editors-next/vitest.config.ts --reporter verbose

The existing synthetic fixture is retained; seed-native.py always creates a new unique skill if a separate replay fixture is needed. No resets are performed.

Independent parent verification

The parent read the implicated source, independently ran the six actual-component/native HTTP observations and controls (6/6 passed), and checked full matched bodies in a fresh 1,065-issue all-state corpus plus the baseline and accepted ledger. Parent evidence: editors-next/parent-replay.log, parent-component-observations.json, and parent-dedup-bodies.md. No hardware screen reader or fresh browser interaction is claimed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugservice: platform

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions