Skip to content

Keep one thread expanded in Threads panel - #999

Merged
max-sixty merged 10 commits into
mainfrom
codex/keep-one-thread-expanded
Sep 23, 2026
Merged

max-sixty merged 10 commits into
mainfrom
codex/keep-one-thread-expanded

Conversation

@max-sixty

@max-sixty max-sixty commented Sep 23, 2026 •

Copy link
Copy Markdown
Owner

Keep exactly one visible conversation expanded in the Threads panel. The list selects the first thread on opening, transfers expansion when a reader chooses another thread, and selects a visible successor when the expanded thread resolves or narrowing hides it. Pressing the already expanded title leaves its conversation accessible. The only visible thread stays expanded. Selection follows the stable thread key when a newly sent comment receives its admitted ID.

Opening the panel exposes its first conversation, so fully visible agent prose there is acknowledged as read. If that acknowledgement changes the height of a long answer while its reply is focused, the reply lands again against the committed layout without taking focus from Send.

Browser coverage exercises mouse and keyboard selection, resolution handoff, narrowing, comment admission, read acknowledgement, and long-thread landing. The full navigation, read-state, and chrome-contract modules, runtime tests, and pre-commit checks pass.

This was written by Codex on behalf of max-sixty

Opening Threads now exposes the first conversation, so fully visible agent prose is acknowledged. Keep unread-navigation cases on a second thread and cover the new exposure path.
The current main adds read acknowledgement cases. Seed an earlier reader thread so first-unread navigation remains observable, and include that fixture comment in the event assertion.

@leaf-agent leaf-agent left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two nightly cases are still red, and the last push didn't reach them.

test_render_conversations.py::test_accordion_keyboard_travel_keeps_drafts_and_respects_narrowing fails on its expect(card).not_to_have_attribute("open", "") immediately after panel_settled — the panel opening with nothing expanded was pinned deliberately, so if the new default is right that assertion has to move with it rather than be left failing. test_render_navigation.py::test_pressing_a_page_mark_stands_in_the_thread_it_opens[long] fails as "the long arrival cut through a content block": an expanded card now stands above the arrival, and the landing no longer clears the list's bottom. Both pass on the merge base 3a5b31a8 under the same selection and -n0. Both modules are nightly, so this branch's gate stays green and main's nightly is where they surface.

Separately, the read-state push settles a product question in passing, and it's worth naming. Inserting panel_comment(serve.page_dir, "The earlier reader thread.") ahead of the agent thread in six cases moves the thread under test off the position the runtime auto-expands, and test_opening_threads_acknowledges_the_first_visible_answer then pins what those cases had been catching: pressing .lf-threads-toggle appends a read event for the first visible answer, with no reader gesture at the message. So an agent's answer is now marked read by the runtime's choice of which card to expand — conversation/read.js still describes itself as observing "only mechanical exposure", and part of what it observes is now that default rather than the reader. That may well be the behaviour you want, but it reads as inherited from a disclosure default rather than chosen, and it isn't in the PR description.

Underneath both: nothing owns which card is expanded. Native name="threads" supplies "at most one"; the new "at least one" is split between #keepOneOpen's visible[0] fallback and destination.open = true in thread-card.js's resolution landing, which exists to correct that fallback after the fact. The close gesture shows the same gap — closing the only open card fires toggle and the handler reopens it, while keyboard/page.js's disclosure.toggle row still reads disclosed(focused()) ? "close" : "open" and binds the arrow on the stated grounds that "the arrow bound is the one that changes this disclosure, so a press cannot mean anything else". The shortcut bar offers that card a close that does nothing, and this PR's own test pins the no-op. One expanded-thread identity held by the list, with disclosure rendered from it, would give the close somewhere to go — move the expansion to a neighbour, or decline it — instead of bouncing it, and would leave one place deciding what the read owner sees.

Runs

Merged tree a338d749 (head da1aa1a3) against its merge base 3a5b31a872b93710c20e044863fa95c4a2cf5608, same command and selection on each, Linux CI runner:

uv run pytest \
  "tests/test_render_conversations.py::test_accordion_keyboard_travel_keeps_drafts_and_respects_narrowing" \
  "tests/test_render_navigation.py::test_pressing_a_page_mark_stands_in_the_thread_it_opens" \
  -q -p no:randomly -n0

  base: 5 passed
  head: 2 failed, 3 passed

tests/test_render_read_state.py is green on this head (18 passed). On the previous head dcaf1ef it was 5 failed against 16 passed on that merge base, which is what the two test commits since have answered.

@leaf-agent leaf-agent left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Six cases in tests/test_render_navigation.py regress on this head. They pass on the merge base 895a629c and fail on the merged tree under the same command and selection, so the branch owns all six:

test_the_way_out_of_a_thread_walk_is_as_deep_as_the_way_in
test_a_key_on_screen_is_a_key_that_works
test_r_resolves_a_thread_from_wherever_the_reader_stands_in_it
test_each_comparison_result_keeps_its_own_comment_destination
test_the_feature_gallery_exercises_the_injected_core_surfaces
test_focus_paint_releases_every_text_box_crossed_before_a_frame

They are the shape 49c1552e just answered in test_chrome_contracts.py: a case presses the first panel card's title to open it and then reaches for something only an open card shows. With the first card expanded on arrival and a press on the expanded card handing the expansion to a neighbour, that press now closes it, and the Resolve button, the reply box, or the shortcut line that follows is gone. test_chrome_contracts.py is on the everyday gate, so it told you; test_render_navigation.py is nightly, so these six will not, and main's nightly is where they surface — the same place the last round's two failures did.

test_the_way_out_of_a_thread_walk_is_as_deep_as_the_way_in is worth reading closely, because the assertion that fails is a line this PR wrote. 182eb690 flipped it to to_have_attribute on the grounds that #keepOneOpen reopened the card; b8ea7cdb then gave the press a neighbour to go to, which is the original reading again. Reverting that single line passes the case — suggested inline. The other five sit outside the diff; I can push them alongside it if you'd like.

Separately, the new re-landing guard in thread-card.js matches .lf-compose, which holds the Send button as well as the reply box. A read receipt arriving while the reader stands on Send therefore re-lands them in the textarea, since showThread defaults to focus: "reply". SAY_BOX names the box itself and is already imported and used eight lines above; suggested inline.

Two contracts the press change makes false, both outside the diff. conversation/landing.js's module header closes its walk paragraph with "Enter and Space therefore keep their native disclosure meaning", and keyboard/AGENTS.md still says of the panel that "Enter/Space toggles disclosure". Neither holds on a panel title now: the click is prevented and the list chooses, and where one thread is visible the row is withheld altogether. Same offer — I can push those with the test fixes.

Runs

Merged tree 309a6287 (head 49c1552e) against its merge base 895a629c7a240370bbf6c0d31c7194bdc02bcf0c, same command and selection on each, Linux CI runner:

uv run pytest \
  "tests/test_render_navigation.py::test_each_comparison_result_keeps_its_own_comment_destination" \
  "tests/test_render_navigation.py::test_the_feature_gallery_exercises_the_injected_core_surfaces" \
  "tests/test_render_navigation.py::test_the_way_out_of_a_thread_walk_is_as_deep_as_the_way_in" \
  "tests/test_render_navigation.py::test_focus_paint_releases_every_text_box_crossed_before_a_frame" \
  "tests/test_render_navigation.py::test_a_key_on_screen_is_a_key_that_works" \
  "tests/test_render_navigation.py::test_r_resolves_a_thread_from_wherever_the_reader_stands_in_it" \
  -q -p no:randomly

  base: 6 passed
  head: 6 failed

The same six were the only failures in a whole-module run of tests/test_render_navigation.py and tests/test_render_read_state.py on the previous head (6 failed, 188 passed), repeated twice with the same set. test_agent_reply_arrivals_keep_open_panel_drafts_and_summarize_batches passes on this head.

The two cases the last review flagged are green here: test_accordion_keyboard_travel_keeps_drafts_and_respects_narrowing and test_pressing_a_page_mark_stands_in_the_thread_it_opens[long]. Removing the queueMicrotask re-landing block and re-running is what identifies it as the fix for the [long] case — without it, that case fails again on "the long arrival cut through a content block".

Comment thread tests/test_render_navigation.py Resolved

@leaf-agent leaf-agent left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tests/test_render_conversations.py::test_a_sent_comment_is_revealed_in_the_panel regresses on this head. It passes on the merge base 895a629c and fails on the merged tree under the same command and selection, so the branch owns it — and the failure is a reader-facing one, not a test arrangement: send a comment into a Threads panel long enough to scroll, and the panel hands the expansion back to the first thread while your own new thread stays collapsed below the fold.

The mechanism is #expandedId. It holds card.dataset.id, which is the model id, and the model id of a sent thread changes when the log answers — pending:65430f30… becomes ecd4004c. On the paint that carries that rename, visible.find misses the id the reveal stored, ?? visible[0] chooses the first card instead, and the line under it writes that choice back into #expandedId, so the reader's selection is not just missed for one paint but discarded. threadKey in conversation/model.js already states the rule this hits — "Anything that has to outlive that transition with the reader standing in it … keys itself by this rather than by the id, which changes when the log answers" — and the list is already keyed that way everywhere else: #views is a map from row.key, which is thread:${threadKey(t)}. The expansion is a second identity for the same row, and it is the one that does not survive the admission. Keying #expandedId on row.key rather than dataset.id is what I ran locally; with that in place the case passes and test_render_navigation.py, test_render_read_state.py, test_chrome_contracts.py, and the rest of test_render_conversations.py are unchanged. Happy to push it if you'd like.

test_chrome_contracts.py is green on this head, so the branch's own gate stays green and this surfaces in main's nightly — the same place the last two rounds' failures did.

Separately, the .lf-thread-summary branches added to disclosure.toggle in keyboard/page.js cannot run. standingOn gates the disclosure scope on Boolean(el?.matches?.(sel)) && !inChrome(el), and the Threads panel is inside .lf-chrome, so a panel thread title is never the reader's position for that scope: the row is not on the shortcut line there, and its arrow does nothing. I checked by pressing → on a closed panel card on this head — it stays closed — and by reading the shortcut line while standing on a panel title, which carries esc / r / / / c / s / t / d / j / g / w / l / ? and no disclosure row. Enter and Space on a panel title are the platform's click reaching the list's own handler, before and after this commit. So the new when withdraws a row that was never offered, does and line name a thread state in a scope that cannot see one, and the header comment's "with the Threads list choosing its one open card" describes a list this file's disclosure row never reaches. Suggested inline as deletions.

Runs

Merged tree 077ad812 (head 82ae0a83) against its merge base 895a629c7a240370bbf6c0d31c7194bdc02bcf0c, same command and selection on each, Linux CI runner:

uv run pytest \
  "tests/test_render_conversations.py::test_a_sent_comment_is_revealed_in_the_panel" \
  "tests/test_render_conversations.py::test_a_coined_class_cannot_reach_the_chromes_rules" \
  "tests/test_render_conversations.py::test_a_growing_reply_keeps_its_send_in_the_list" \
  -q -p no:randomly

  base: 2 failed, 1 passed
  head: 3 failed

test_a_coined_class_cannot_reach_the_chromes_rules (an lf-msg-sending class the exception does not name) and test_a_growing_reply_keeps_its_send_in_the_list fail on the base too and are not this branch's. test_a_sent_comment_is_revealed_in_the_panel is the one that moves.

Whole modules on this head: test_render_navigation.py, test_render_read_state.py, test_chrome_contracts.py — 223 passed, including all six cases the last round flagged and the new test_threads_panel_keeps_one_visible_thread_open_through_resolution. test_render_conversations.py — 3 failed, 99 passed, the two above plus the regression. With #expandedId keyed on row.key: 223 passed and 2 failed, 100 passed, leaving only the two base failures.

The reveal, instrumented on this head — the reader's own send, then the paint that renames it:

revealNavigation id= pending:65430f30…   card= true hidden= false
showExpanded want= pending:65430f30…     found= true   chose= pending:65430f30…
showExpanded want= pending:65430f30…     found= false  chose= 9c6b57a0
showExpanded want= 9c6b57a0              found= true   chose= 9c6b57a0

@max-sixty
max-sixty merged commit 6802d69 into main Sep 23, 2026
5 checks passed
@max-sixty
max-sixty deleted the codex/keep-one-thread-expanded branch September 23, 2026 12:24
max-sixty added a commit that referenced this pull request Sep 23, 2026
## Summary
- Update two nightly browser cases for the Threads panel's
one-expanded-thread behavior from #999.
- Check the immediate live announcement for a stamped version while an
earlier draft notice may still occupy the bottom status.
- Preserve the outbox undo, lazy widget-module, keyboard, and focus
assertions.

## Verification
- All three cases failed in a full nightly run of main at `aa3234f0`.
The two disclosure cases reproduced locally before the change; all three
pass together after it with `--run-nightly -n2`.
- `uv run pre-commit run --files tests/test_render_outbox.py
tests/test_render_startup.py tests/test_render_projection.py` passed.

> _This was written by Codex on behalf of max-sixty_
max-sixty added a commit that referenced this pull request Sep 23, 2026
… hold (#1013)

Three surfaces still measured for themselves what #982 and #992 made
shared.

## Changes

- **On screen.** `shownRect`'s clip walk now applies each ancestor's
visible band: its shown band less the covers stuck in it. Every reading
built on `shownRect` answers the same way: read acknowledgement, the
thread card's being-read check, arrival checks, and chrome placement.
The thread card had only asked `leaf-thread-list`, so on any other
surface it found nothing being read. `read.js` drops its own thread-list
special case. A cover belongs to the scroller it sticks in and never
hides itself or its contents. Both of those checks climb out of shadow
trees.
- **Cover room.** `declareCoverRoom(host, property, covers)` in
`geometry.js` is now the one way a box becomes a cover. It registers the
covers for the visible band, observes them, and keeps the tallest one's
height on the host, where a `scroll-padding` or `scroll-margin` reads
it. The thread list's run headings and each pinned `lf-diff` file header
now use it in place of two hand-rolled ResizeObserver paints. Because
the covers are observed rather than measured at reconcile, no layout is
forced. A cover that stops rendering, for example when the panel is
shut, keeps the room it last measured. The diff's row `scroll-margin`
now applies only where its header pins.
- **Place hold for packages.** `widget-api.js` exports `placeKeeper` and
`declareCoverRoom`, and `references/packages.md` documents both. No
package was hand-rolling place preservation. `lf-board`'s `scrollTo`
stops an in-flight smooth scroll; it does not hold a place.

## Behavior that moved

- `--lf-head-room` is now the heading's exact rendered height, not a
rounded `offsetHeight`.
`test_the_room_a_run_heading_takes_follows_the_reader_drawing_the_panel`
now compares numbers.
- Chrome, read acknowledgement, and arrival checks no longer count a box
under a stuck run heading or a pinned diff file header as shown.

## `test_pressing_a_page_mark_stands_in_the_thread_it_opens[long]`

This test passes on 89902be. I bisected it: it fails at 591e06a and
passes at 6802d69 (#999). #999 re-lands the reply in a microtask after
a read receipt, because read acknowledgement reflows the prose the
reader was just landed in. The unread rail's 8px inline inset and the
read boundary both change layout. This PR leaves that re-land in place.
Making read marks layout-neutral would change how read and unread
messages look.

## Tests

- `npm run test:runtime`: 76 passed. A new case covers cover ownership
and self-exclusion; I confirmed it fails when either rule is removed.
- Everyday `uv run pytest tests`: 1368 passed.
- `--run-nightly` across chrome contracts, navigation, read state,
conversations, anchors, margin, widgets, controls, projection, aim,
commands, options, gate, and drafts: 1323 passed after the head-room
test fix.

> _This was written by Claude Code on behalf of max-sixty_

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
max-sixty added a commit that referenced this pull request Sep 23, 2026
Marking a thread read moved the reader. The unread rail indented a
message's content by 8px, and each **New since you last looked** / **End
of this new section** boundary added 29px of height. A receipt removed
both, so the prose rewrapped, the card got shorter, the scroller
clamped, and a landing could cut through a text block. #999 handled one
trigger with a microtask in `thread-card.js` that re-landed the focused
reply after a receipt. This PR removes the reflow itself.

Every read mark now takes space the layout already has:

- **Rail**: a `border-image` outset into the message's inline margin. It
uses no space, and neither the message nor the hoisted root header needs
a positioning context. A `position: relative` on the root header would
have pulled `.lf-going`'s absolutely placed actions 8px inward.
- **Boundary**: a zero-height block. Its margins collapse through it, so
it sits at the next message's edge, and its label sits in the 16px gap
between messages. A boundary that is the first child of its container,
like the one opening a checkpoint's originals, has no margin above it to
collapse with. It sits at the start of its gap, so its label hangs below
it.
- **Hoisted root header**: the row now uses `align-items: center`
instead of `baseline`. With baseline alignment, removing **Mark thread
read** shifted the author line down by 4px.
- The re-land microtask from #999 is deleted.

`skills/leaf/assets/AGENTS.md` now includes the rule next to the single
reading of unread: reading is bookkeeping, and a receipt changes no box
the reader is looking at.

## Tests

- New `test_reading_a_thread_moves_nothing_in_it`: records the box of
every element in a card before and after a server read receipt, and
requires every one to stay the same. The only exception is the summary
row, message metadata, and header actions: when they lose a label or
control, they may close up horizontally but not vertically. The thread
has two `new` boundaries, one `end` boundary, and a root rail. On main's
CSS the test fails (the card goes from 606 to 526px tall, and 62 boxes
move).
- The summary-originals test now also checks that the opening boundary's
label clears the **Show messages** control.
- `test_pressing_a_page_mark_stands_in_the_thread_it_opens` (all 4
params, `--run-nightly`) passes without the microtask. It also passed on
main's CSS without the microtask in 20 of 20 concurrent runs, so it no
longer reproduces the race #999 addressed. The new test is what pins the
no-reflow property.
- `--run-nightly` for `test_render_navigation.py`,
`test_render_conversations.py`, `test_render_read_state.py`, and
`test_chrome_contracts.py` after merging current main: all 328 pass.
- `npm run test:runtime` and pre-commit pass.

> _This was written by Claude Code on behalf of max-sixty_

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
max-sixty added a commit that referenced this pull request Sep 23, 2026
Marking a thread read moved the reader. The unread rail indented a
message's content by 8px, and each **New since you last looked** / **End
of this new section** boundary added 29px of height. A receipt removed
both, so the prose rewrapped, the card got shorter, the scroller
clamped, and a landing could cut through a text block. #999 handled one
trigger with a microtask in `thread-card.js` that re-landed the focused
reply after a receipt. This PR removes the reflow itself.

Every read mark now takes space the layout already has:

- **Rail**: a `border-image` outset into the message's inline margin. It
uses no space, and neither the message nor the hoisted root header needs
a positioning context. A `position: relative` on the root header would
have pulled `.lf-going`'s absolutely placed actions 8px inward.
- **Boundary**: a zero-height block. Its margins collapse through it, so
it sits at the next message's edge, and its label sits in the 16px gap
between messages. A boundary that is the first child of its container,
like the one opening a checkpoint's originals, has no margin above it to
collapse with. It sits at the start of its gap, so its label hangs below
it.
- **Hoisted root header**: the row now uses `align-items: center`
instead of `baseline`. With baseline alignment, removing **Mark thread
read** shifted the author line down by 4px.
- The re-land microtask from #999 is deleted.

`skills/leaf/assets/AGENTS.md` now includes the rule next to the single
reading of unread: reading is bookkeeping, and a receipt changes no box
the reader is looking at.

## Tests

- New `test_reading_a_thread_moves_nothing_in_it`: records the box of
every element in a card before and after a server read receipt, and
requires every one to stay the same. The only exception is the summary
row, message metadata, and header actions: when they lose a label or
control, they may close up horizontally but not vertically. The thread
has two `new` boundaries, one `end` boundary, and a root rail. On main's
CSS the test fails (the card goes from 606 to 526px tall, and 62 boxes
move).
- The summary-originals test now also checks that the opening boundary's
label clears the **Show messages** control.
- `test_pressing_a_page_mark_stands_in_the_thread_it_opens` (all 4
params, `--run-nightly`) passes without the microtask. It also passed on
main's CSS without the microtask in 20 of 20 concurrent runs, so it no
longer reproduces the race #999 addressed. The new test is what pins the
no-reflow property.
- `--run-nightly` for `test_render_navigation.py`,
`test_render_conversations.py`, `test_render_read_state.py`, and
`test_chrome_contracts.py` after merging current main: all 328 pass.
- `npm run test:runtime` and pre-commit pass.

> _This was written by Claude Code on behalf of max-sixty_

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
max-sixty added a commit that referenced this pull request Oct 1, 2026
Since #999 the list always shows one thread open, and since #1480 that
card fills the list, so the list's own focus ring outlined the card while
its keys answered for the whole panel: `c` wrote in the page box, and
Escape, `r`, Enter and the shading treated the stop as no thread at all.

Focus given to the list now goes on to its open thread's title, whatever
gave it (`g T`, Escape from the general box, Tab, a fold). The list holds
focus itself only while it shows no thread. A panel thread has no let-go
floor of its own any more: Escape from it is the panel's rungs, which
clear narrowing and then close. This replaces the previous commit's
reading of the list as standing for its card, which only `c` and `e`
shared.

Behavior that moved: `g T` lands on the open thread's title, so `c`
replies and `r` resolves from there; Escape from a reply box takes two
presses to close the panel rather than three; Escape from the general box
lands on the open thread. The keyboard contract's two-level Threads
selection and its TODO about page `t` exiting through whole-panel
selection are gone. `test_the_threads_list_hands_focus_to_the_thread_it_shows_open`
replaces the list-route test.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
max-sixty added a commit that referenced this pull request Oct 1, 2026
On the Threads list, focus now always stands on the thread the list
shows open, so the ring the user sees, the box `c` writes in, and the
keys the line offers all name the same thread.

## Why

Two rules were written while the list showed only titles: `c` on the
list wrote on the page (Aug 25), and Escape from a thread returned to a
"whole panel" stop that `g T` also landed on (#921). Then #999 kept one
thread open whenever the list shows any, and #1480 made that card fill
the list. The list's own focus ring therefore outlined the open card
exactly, while `c` from there wrote in the page box and Escape, `r`,
Enter and the shading treated the stop as no thread at all. A user saw a
selected thread and `c` went somewhere else.

## What changes for the user

- Focus given to the list (`g T`, Escape from the panel's general box, a
fold of the focused card) goes on to the open thread's title. There `c`
writes its reply, `r` resolves, and the line offers `r resolve` and `esc
close threads`. The list keeps focus itself only while it shows no
thread.
- Focus on a collapsed title opens its thread, however it arrives, so
focus, selection and the open card never part. A pointer press still
opens on its click.
- Escape from a panel thread is the panel's own rungs: clear the
narrowing, then close. Leaving a reply takes two Escapes rather than
three.
- In a narrow window, where the panel covers the page, `c` and `e` on a
panel thread work; both were dead there. `comment.create` and
`reaction.open` now declare `covering`, replacing the panel's own copy
of `c`, which knew only the page box.
- The expanded shortcut bar gives back the rows that fit once a wider
row is trimmed.

## Where to look

- `runtime/thread/thread-list-view.js`: the list passes its focus to the
open title, and a title taking focus becomes the choice.
- `runtime/keyboard/page.js`: a panel thread has no let-go floor of its
own.
- `runtime/user-intent.js`: focus a container passed on, before any
newer input, counts as displaced, so a resolve's landing still carries
the user to the next thread.
- `runtime/thread/thread-list.js`: the place hold is taken when a closed
title's focus opens it.
- `runtime/composing/surface.js`, `runtime/reactions.js`,
`runtime/thread/panel.js`: one `c` row for page and panel.
- `runtime/keyboard/AGENTS.md`: the Threads selection contract.

## Tests

About 60 browser tests walked through the old whole-panel stop; they now
assert where the user lands. Renamed where the name stated the old stop:
`test_go_to_threads_lands_on_the_open_thread_from_a_page_thread`,
`test_a_panel_thread_closes_with_the_panel_as_go_to_threads_does`,
`test_a_note_walked_on_inside_the_panel_is_left_by_the_panel_holding_it`,
`test_the_line_offers_the_thread_g_t_lands_on_its_own_keys`,
`test_an_empty_thread_list_wears_its_ring_whole`. New:
`test_the_threads_list_hands_focus_to_the_thread_it_shows_open` (1600
and 420px) and `test_a_title_taking_focus_opens_its_thread`. Tab walks
down the list now cross each thread's controls, since each title Tab
reaches opens, and a reader who stood on a later thread by scripted
focus walks there with `t`.

The 26 browser files touching Threads pass apart from tests that fail
the same way on main and load flakes whose rate matches main's in paired
runs.

> _This was written by Claude Code on behalf of max-sixty_

---------

Co-authored-by: Claude Opus 5.5 (1M context) <[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