review(directory-picker-browse): re-arm the draft-following wait per keystroke

ds-review-bot round one. Keying the debounce on the directory part the draft
named left two states with no recovery until the operator crossed a separator:
a keystroke that superseded an in-flight scan never re-armed one, and an edit
after a rejected submission released the hold with no timer left to release.
The wait is now keyed on the draft itself and decides its target when it
fires, reading the panes through a ref so a landing cannot re-arm it (a host
answering with a differently spelled path would otherwise scan forever).

A landed scan that unmounts the row a keyboard operator Tabbed onto re-parks
focus on the still-open editor; the Modal has no focus trap. That a walked-to
level survives closing the editor is now stated in the README, the Agent Note,
and the module contract. The new e2e stages its own beta directory so running
it alone sees the tree its assertions describe.
This commit is contained in:
creatixchu
2026-08-03 12:11:11 +08:00
parent 79072e356c
commit 30f442d42e
9 changed files with 124 additions and 23 deletions
@@ -2,5 +2,5 @@
# side as of the last confirmed-consistent state. Both languages carry equal authority;
# after editing either side, bring the other along and re-record with:
# pnpm run verify-translation-pairing --write packages/host/directory-picker-browse/README.md
README.md: 7cb0ec785766e954ff4bb39df6825ee7e8c9d821
README.zh.md: ec71a90bbcd004ec9f9c0d8a9a236882a7487b73
README.md: a559f7f23b74f694c25fb43e005cbaccd4024308
README.zh.md: 321e27d7a1dc9eb9bf0d1dab37c1af42e8ad6519