Skip to content

Unify inline page-map threads - #172

Merged
max-sixty merged 6 commits into
mainfrom
codex/inline-thread-previews
Aug 31, 2026
Merged

max-sixty merged 6 commits into
mainfrom
codex/inline-thread-previews

Conversation

@max-sixty

@max-sixty max-sixty commented Aug 31, 2026 •

Copy link
Copy Markdown
Owner

Inline page-map threads carried a redundant local route back to Threads, routed c away from the visible conversation, and changed posture while the page was still moving. This makes the inline conversation the direct reply surface, removes the redundant local route, and places thread cards beside their Button after any panel motion settles.

The newer target-Button model now handles non-thread readings directly, so asks and outcomes no longer open a second, differently placed preview. Browser coverage checks the first painted frame, panel-to-inline transitions, keyboard reply focus, multi-thread cards, and the exact Button/card boundary.

This was written by Codex on behalf of @max-sixty

@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.

The placement rewrite reads well and the first-painted-frame coverage is the right shape — it fails if placeThreadPreview() stops running in the show turn, which is exactly the defect it names. Three notes, all on parts of the diff that turn out to be inert.

The one that matters is the "repeated category label" thread. .lf-margin-kind is only ever emitted into sheetList (the page-map <dialog>), never into previewList, so the card has never carried a category label and the three new assertions asserting its absence were already true on d215239. I checked by dumping the card's outerHTML on the base commit; the only head chrome the diff actually removes is the Threads button. That leaves the skills/leaf/CLAUDE.md clause describing a behaviour change that didn't happen, and three assertions that can't fail backing it.

How I checked

Rendered the card on d2152390 (DECISION_PAGE + COMMENT_ON_DECISION, viewport 1440×900, marker pressed) and counted .lf-margin-preview .lf-margin-kind → 0. The card's head on base was [Threads button][.lf-margin-preview-title][×]; the list held section.lf-margin-thread > .lf-margin-thread-body > .lf-conversation-thread with no kind span anywhere. grep -rn lf-margin-kind skills/leaf has one generator, in renderSheet, writing into sheetList — and sheetList is appended to sheet, a separate <dialog>, not to preview.

The redundant placeThreadPreview(): deleted it locally and ran uv run pytest tests/test_render_margin.py -n0 → 28 passed, new first-frame assertions included.

Measured widths at the beside range (card left / width): 1208 → 752 / 448, 1280 → 824 / 448, 1440 → 908 / 460, 1920 → 1148 / 460. The 448 is the marker rail eating into the 520px strip; consistent with the floor this PR lowers from 459 to 447, so I read it as intended rather than a regression.

Not this PR: test_a_pending_suggestion_can_be_discussed_instead_of_decided, test_a_decision_that_empties_its_widget_detaches_the_element_anchor, and test_command_hub_derives_the_operator_reading_from_its_goal_tree fail for me in this sandbox on the merged tree — and fail identically on the pre-merge base d215239, same locator timeout — while ci / test was green on 1b77d53. Sandbox-local, not a signal here.

Comment thread tests/test_render_margin.py Resolved
Comment thread skills/leaf/CLAUDE.md Resolved
@max-sixty
max-sixty merged commit ed6508b into main Aug 31, 2026
21 checks passed
@max-sixty
max-sixty deleted the codex/inline-thread-previews branch August 31, 2026 19:55
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