Skip to content

Make workspace continuation visible - #520

Merged
max-sixty merged 3 commits into
mainfrom
codex/workspace-continuity
Sep 9, 2026
Merged

max-sixty merged 3 commits into
mainfrom
codex/workspace-continuity

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

Bounded workspace panes can contain more text below their visible edge without any native scrollbar being visible. Add a subtle bottom-edge continuation shadow to registered reading regions while unread content remains, and remove it at the end or when the workspace flows into the page.

Keep Threads responsive: beside the document when there is room and covering it on narrow screens. Record the general modal-focus work for covering workspaces separately so the continuation change does not expand into a riskier interaction redesign.

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 three new rules land inside theme.css's lf-shadow:start…lf-shadow:end block, so shadow.js copies them into every declared shadow root — where, as widget-elements.js's own header already puts it, html:not(.lf-copy) "matches nothing at all". That block carried no lf-copy selector before this PR; these are the first three.

Two consequences. Every x-shadow root now ships three rules that can never match. And registerReadingRegion / arrangeReadingElement are public package API (references/packages.md), so a package that arranges a pane inside its shadow stage gets data-lf-cut painted on that body and data-lf-more-below written with no shade behind it — one axis answered and the other silently not, which is the failure the marks' own comments are written against.

The guard is also only buying the copy half: these rules are inside @media screen, so print is already covered, and the comment above them claims otherwise. The copy half has an established home — bake() in render-checks/standalone.js already removes data-lf-live, data-lf-traffic, and data-lf-reading for exactly this reason. Dropping the prefix puts the mark on the same terms as [data-lf-cut] beside it, whose comment says a copy keeps the mark it was exported with. The suggestions below do that; with them applied the workspace, monitoring, and cut-mark cases still pass locally.

Comment thread skills/leaf/assets/theme.css Resolved
Comment thread skills/leaf/assets/theme.css Resolved
@max-sixty
max-sixty merged commit c9eaa2c into main Sep 9, 2026
13 checks passed
@max-sixty
max-sixty deleted the codex/workspace-continuity branch September 9, 2026 22:49
leaf-agent added a commit that referenced this pull request Sep 18, 2026
#14's dependency line named PR #520 as the settlement, but #520 kept the
adaptive placement and deferred the modal-focus work to #24, which landed
in PR #536 as inertness, dialog semantics and focus containment for a
covering workspace. That is the surface #14 verifies, so its "Done when"
still read "Avoid imposing a modal focus trap on a nonmodal panel" — the
containment #536 shipped, described as the defect to avoid.

State the containment the shipped modality requires and name both
settlements. The dated evidence sentence is left as the 8 September
record.
max-sixty pushed a commit that referenced this pull request Sep 18, 2026
`notes/workspace-followups.md` has been presenting finished work as the
plan since 9 September. It opens with "Start #2, #3 and #4 as one
coordinated contract batch; run the review-queue simplification #8
alongside it" — all four of those shipped that week — and carries
thirteen briefs, each with a live "Next task" and "Done when", for work
`TODO.md` dropped as complete. This removes them and leaves the six
`TODO.md` still links: #11, #14, #19, #20, #22 and #23.

The trim follows the convention #666 set and the reason `CLAUDE.md`
gives for it: a note is never a second specification for shipped
behavior. #666 removed #6, #7, #16 and #17 the same way, rewriting the
two `Owner / dependencies` lines in surviving briefs that named them; it
simply did not reach the rest.

Each removal is evidenced by the commit that took the item out of
`TODO.md`, not by a reading of the current code:

| Brief | Removed from `TODO.md` by |
| --- | --- |
| #1, #3, #5 |
[`0f7f06a6`](0f7f06a)
— "Completed workspace items #1, #3, and #5 are removed from `TODO.md`"
|
| #2, #4, #8, #9 |
[`28b5da99`](28b5da9)
— "the completed #2, #4, #6, #8, #9, and #17 backlog entries are removed
while preserving the deferred evaluation work" |
| #13, #15 |
[`6df40353`](6df4035)
— "closes three bounded workspace follow-ups" |
| #10, #12 |
[`c9eaa2c6`](c9eaa2c)
— the continuation cue and the adaptive Threads placement |
| #18, #21 |
[`e46c8b93`](e46c8b9)
— the monitoring workspace and its package-owned root |

Alongside the briefs, three group headings are now empty and go; the
`Suggested work packages` table loses the rows whose whole scope landed;
and four cross-references that named a removed ID are rewritten — #14's
dependency on the Threads-placement experiment, #20's ordering behind
#8, and the two sentences in `Reproduction record` and `Browser
evidence` that pointed at briefs no longer here.

#14 needed more than a rewritten pointer. The experiment it waited on
was settled in two steps, and only the first removed an ID: [PR
#520](#520) kept the adaptive
placement and deferred the modal-focus work to #24, which landed in [PR
#536](#536) as inertness, dialog
semantics and focus containment for a covering workspace. That is the
surface #14 exists to verify, so its `Done when` — "Avoid imposing a
modal focus trap on a nonmodal panel" — described the containment #536
shipped as the defect to avoid. It now states the containment the
shipped modality requires, and the dependency line names both
settlements.

The dated evidence sections themselves stay. They are the record of what
was read in a browser on 8 September, not a plan, and the note's own
header scopes them to that date.

No test covers `notes/`, and this changes no behavior, so there is
nothing to regress. `pre-commit` passes on the file; the `TODO.md` →
note anchors all still resolve, and no surviving text references a
removed ID.

---------

Co-authored-by: leaf-agent <[email protected]>
max-sixty added a commit that referenced this pull request Oct 20, 2026
#3344)

A reading region with more content below its edge now fades that content
over its last 24px, the same paint the sideways marks already use.
Before, the bottom cue was an inset box shadow, which draws under the
box's own children. A playground in a short workspace showed nothing:
its preview's code cards cover the shadow completely (0 pixels changed
by the mark in Chromium and Firefox), and over the transparent controls
and instruction it changed each channel by at most 16 of 255.

`reach.js` already marked these boxes correctly (`data-lf-more-below`),
so the fix is in the paint only (`controls.css`, regenerated into
`shadow.css`). Widening the mark to every scroll box was checked and
isn't needed: across `examples/` and `docs/`, only one at-rest box (the
registry page's contents sidebar at 560px tall) would newly qualify.

**This reverses #520's rule for the bottom cue.** #520 kept the cue
"behind descendants rather than an overlay over their words or
controls". That placement is why the cue vanished wherever content runs
to the edge. The fade puts the bottom cue in the same vocabulary as the
sideways marks, whose own record already argues for masking the content
over "casting an unexplained shadow behind it". Each axis states its
gradient stops in a non-inheriting custom property, and one rule
intersects the two, so a box cut both ways fades on both edges and a
nested scroller fades only where it is cut itself. Focus inside the box
removes the fade on either axis, as it already did sideways: otherwise
Tab could leave a control at the bottom edge faded under its own ring.

**Gap case.** The fade shows only where content reaches the cut. Where
the cut falls in a gap between items, the faded band holds nothing, so
no cue shows: `retained-quote-touch` in the stills had a faint shadow
line on main and has none now, and the `alert-queue` sidebar's cue is
weaker. The user chose this over a shade drawn above the content, which
shows in every case but covers the edge of words and drew outside an
enclosing scroll box when nested.

Behavior change: every registered reading region (panes, playground
regions, bounded blocks, tab panels, panel views, the command reference)
shows a 24px content fade at its bottom edge instead of an inset shadow.

The new test
`test_a_short_workspace_shows_more_below_its_playground_regions` opens
code-comparison at 1280x560. It checks that the mark visibly changes the
bottom band of the preview and the controls, that a radio reached by Tab
is not faded, and that the mark clears at the end. It fails on main with
`AssertionError: preview` (`leaf-dev bugback` reports it caught). In
Firefox and Chromium, that radio now lands in full view with its ring
and is not faded.

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