Skip to content

Fix malformed inline diffs in the gallery - #3191

Merged
leaf-agent merged 1 commit into
mainfrom
fix/ci-39336757143-patch
Oct 20, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
fix/ci-39336757143-patch

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

The three inline patches added to the diff gallery in #3176 ended with indentation before </pre>. Leaf preserves trailing whitespace in a patch because a space can be a context line, so Pierre read the indentation as extra hunk content and refused each patch. The main CI run caught all three while surveying the generated corpus.

Place each closing tag at the start of its line and regenerate the corpus. The existing test_unchanged_margin_passes_over_the_corpus_do_bounded_work_and_write_nothing failed with these parse errors before the edit and passed after it. The patch still keeps meaningful trailing whitespace in its source; the example now supplies a valid hunk.

@leaf-agent
leaf-agent merged commit 86c4740 into main Oct 20, 2026
4 checks passed
@leaf-agent
leaf-agent deleted the fix/ci-39336757143-patch branch October 20, 2026 00:23
max-sixty added a commit that referenced this pull request Oct 20, 2026
#3100 removed the banner, the shortcut bar, the All pages and On drawers
and the Threads side panel. This removes what only those surfaces
reached and rewrites prose that still describes them as present.

**One real bug:** the Worker's interaction schema
(`worker/src/interactions.ts`) still allowed
`banner_words`/`queue_words` and surfaces `banner`/`queue`, which
nothing emits now, and lacked `status_words`, which the floating panel's
status has emitted since #3100. The schema drops values it doesn't know,
so leaf.page logged those records without their `presentation_kind`. It
now lists what the runtime sends: `status_words` among the kinds, and
`panel`, `margin`, `page` and `outlet` among the surfaces (leaf-agent's
review).

**Also fixes a regression from #3181:** the attached-image rule gave the
panel's card a second anchor name, `--lf-fp-card`, which replaced
`--lf-fp-panel`, so page search lost the anchor it stands on above the
panel and fell to the window's top (main's focus-ring journey: passage
search on triage-board, ring 3px off screen). The images now hang from
`--lf-fp-panel`. The journey passes locally again; its remaining
teardown error is the lf-diff gallery #3191 fixes.

**Dead code** (each checked for callers in the current tree):
`awaitsAgent`/`awaitsUser` (the deleted Threads filter), `inRecentOrder`
(the deleted Recent order), `unreadBoundaries` (the side panel's thread
card), the `grow` keyframes, and the ring sweep's `offered()` column,
which asked whether the banner had hidden a control and always passed
since. Their tests go with them.

**Renamed:** `navigation.drawer.queue`/`navigation.drawer.leaves` →
`navigation.panel.queue`/`navigation.panel.leaves`, beside
`navigation.panel.threads`.

**Prose:** about 45 files of comments, docstrings, notes and test
docstrings that placed things under the banner, on the shortcut bar or
in a drawer. Past-tense history stays.

Checked: `pnpm run test:runtime`, `check:browser`, `check:worker`,
pre-commit, and the focused browser and journey ids the renames touch.

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

1 participant