Skip to content

Restore browser working places and target exact data items - #1544

Merged
max-sixty merged 1 commit into
mainfrom
codex/browser-walk-origin
Oct 2, 2026
Merged

max-sixty merged 1 commit into
mainfrom
codex/browser-walk-origin

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

Following a thread reference, then using Back, restored the viewport while focus remained at the destination: t advanced from the wrong discussion. History entries now hold return checkpoints for browser focus and selection, restored after their view is revealed. Commands continue to derive their current target from the browser. Removed or hidden targets are cleared, and a newer gesture cancels a delayed return.

Data references now focus the addressed row. Keyboard comments and reactions share pointer targeting, retaining the datum and source revision rather than addressing the whole widget. Shared margin geometry reaches shadow rows, and closing reaction controls paints retirement and the submitted action together. The feature gallery exercises native history returns. Developer previews also declare the patch-parser dependency they need when overlaid on a baseline runtime.

Validation: real browser journeys cover Back/Forward, returned selections, thread links, exact patch-line comments and reactions, shadow scrolling, and focus return. The Python/browser gate, runtime tests, browser framework and Worker checks, lint, and bundle reproduction pass. Matched before/after journeys were inspected in rendered previews.

This was written by Codex on behalf of max-sixty

History return checkpoints restore focus and selection after revealing the entry; commands continue to read current browser state. Data navigation and keyboard comments/reactions share the exact semantic target and provenance. Closing reaction options commits retirement and the action together.

The thread-history test now walks backwards from its bottom-of-page origin; the existing browser-derived walk clamps at the final thread rather than wrapping. Exact-row tests replace the old containing-summary focus expectation.

Developer previews declare the patch parser they use when overlaid on a baseline runtime.
@max-sixty
max-sixty merged commit 92fc5a6 into main Oct 2, 2026
4 checks passed
@max-sixty
max-sixty deleted the codex/browser-walk-origin branch October 2, 2026 01:09
max-sixty pushed a commit that referenced this pull request Oct 2, 2026
…ation (#1554)

## Summary

Align three reaction browser tests with the current retained-editor and
navigation behavior after #1536 and #1544.

- A diagram comment editor stays in the window while its target scrolls
away, then returns to target placement when the target is visible again.
- The mobile Threads test opens the panel through its visible button,
leaving the reaction keyboard behavior under test.
- The response-row test explicitly constrains the bar to 280px, so it
still proves the seven choices hold one row under tight space after the
floating bar gained more room.

## Evidence

All three tests failed in [main CI run
36945384717](https://github.com/max-sixty/leaf/actions/runs/36945384717)
and were reproduced against current main before the edits. The three
focused tests pass after the edits; the response-row case was rerun at
its original 1024px viewport. `uvx pre-commit run --files
tests/test_render_reactions.py` passes.

> _This was written by Codex on behalf of max-sixty_

Co-authored-by: leaf-agent <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants