pf_app
Driving the re-apply from the observer callbacks caught the refocus case but fired on far more than that: ResizeObserver reports every reflow, so dragging the panel, a scrollbar appearing, or anything that changed the layout re-applied the stored depth and discarded whatever had just been expanded by hand. From the outside that is the pivot snapping to a different layout while clicking around. Going away is what discards the view; a reflow is not. So the callbacks now record the departure -- lost intersection, collapsed to zero size, or a hidden document -- and only a return after one of those restores anything. The flag clears once the depth is back, so one departure causes one restore. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| lib | ||
| public | ||
| routes | ||
| setup_sql | ||
| ui | ||
| .env.example | ||
| .gitignore | ||
| CLAUDE.md | ||
| install.sh | ||
| package-lock.json | ||
| package.json | ||
| PERSPECTIVE.md | ||
| pf_perspective_options.md | ||
| pf_spec.md | ||
| pf.sh | ||
| server.js | ||