Skip to content

Note the short Threads list's tradeoff in TODO, and correct followThreadEnd's comment - #1525

Merged
max-sixty merged 1 commit into
mainfrom
thread-compact-shift
Oct 1, 2026
Merged

max-sixty merged 1 commit into
mainfrom
thread-compact-shift

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

#1480 made the open card in the Threads panel fill a list too short to scroll,
with its reply box at the list's foot. That settles both news-driven shifts
left over from #1466, which showed only with the CPU slowed 20x:

  • A reply arriving in the open thread takes the free room above its reply box,
    so the box no longer drops 32px.
  • A resolved thread returning above the open card makes the list scrollable,
    and the place hold scrolls the newcomer out of view rather than pushing the
    card being read down 46px (measured: list scrollTop 46, the read card at the
    list's top).

test_a_website_turn_posts_its_answer_when_the_move_is_settled_first passed
4 of 4 runs per case at 20x on main. Since #1494 the shift watch judges news
right after a press as without input, so that test now guards both cases at
CI speed too.

This TODO entry records why it is the best tradeoff rather than a perfect one,
and what was rejected. followThreadEnd's comment still said a short list's
end grows into the room below, which #1480 made untrue.

This was written by Claude Code on behalf of max-sixty

🤖 Generated with Claude Code

…eadEnd's comment

#1480 made the open card in the Threads panel fill a list too short to scroll,
with its reply box at the list's foot. That settles both news-driven shifts
left over from #1466, which showed only with the CPU slowed 20x:

- A reply arriving in the open thread takes the free room above its reply box,
  so the box no longer drops 32px.
- A resolved thread returning above the open card makes the list scrollable,
  and the place hold scrolls the newcomer out of view rather than pushing the
  card being read down 46px (measured: list scrollTop 46, the read card at the
  list's top).

`test_a_website_turn_posts_its_answer_when_the_move_is_settled_first` passed
4 of 4 runs per case at 20x on main. Since #1494 the shift watch judges news
right after a press as without input, so that test now guards both cases at
CI speed too.

This TODO entry records why it is the best tradeoff rather than a perfect one,
and what was rejected. `followThreadEnd`'s comment still said a short list's
end grows into the room below, which #1480 made untrue.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@max-sixty
max-sixty merged commit b6cccd9 into main Oct 1, 2026
5 checks passed
@max-sixty
max-sixty deleted the thread-compact-shift branch October 1, 2026 21:17
max-sixty added a commit that referenced this pull request Oct 5, 2026
…ecords before changing a module

held-news.js's header now records that a panel card holds news behind its
notice (#1694), the choice #1525 recorded and the alternatives it rejected,
and that arrival stays a set of call sites because deriving it from focus
events missed shadow-tree moves and dialog hand-backs. /developing-leaf
tells a change to read a module's decision record first, write a decision
it settles there, and ask the user before reversing one they made.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
max-sixty added a commit that referenced this pull request Oct 5, 2026
… now (#1780)

Records decisions from the held-news case study where the next change
will read them.

- `AGENTS.md`, "Where instructions live": a module's header records the
product decisions it embodies and the alternatives they rejected; a
change that reverses one rewrites that record and says so in its commit.
(#1525 kept its rejected alternative in `TODO.md`; #1694 adopted it
without noting the reversal.)
- `held-news.js`: the first such record. A panel card holds news behind
its notice (the user's decision), rejecting filling the list (#1480) and
letting the list move. Arrival stays the `showHeld` call sites, since
deriving it from focus events missed focus moves inside one shadow tree
and took a dialog's hand-back for an arrival.
- `tests/AGENTS.md`: the narrow pull-request gate is the user's choice,
so a red main is no reason to widen a change, its gate, or its test
selection.

The branch also carries that focus-derived arrival attempt and its
revert, for reference; the net diff is the three records above.

> _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