Skip to content

Show on an On me to-do hides its text; a page-subject one lands on a bare title #3618

Closed

Description

@max-sixty

What happens

A to-do opened on the user with the whole page as its subject shows its text in the On me list. Pressing its Show button closes the list, scrolls to the top and outlines the page's <h1>, and nothing on screen then shows the to-do's text. The reader sees an outlined title and no question. Stepping through On me with m lands on the same title, and the bar reads "1 of 2 waiting on me · To-do", which names the item's kind but not its text.

A to-do on an element behaves the same way: Show outlines the element, and the text isn't shown there either. The element's own content gives the reader some context and the title gives none, so a page-subject to-do is where this reads as an empty item.

After Show, the to-do's text is in the DOM only inside the panel's hidden .lf-fp-peek (display: none).

Expected

Wherever Show or m lands, the to-do's text is visible, so the reader can act on it without reopening the list. leaf task open --help offers page as a subject beside an element's id, so a page-subject to-do should be answerable where it lands.

Repro

  1. leaf page init <dir>, then write this index.html:

    <!doctype html>
    <html lang="en">
      <head>
        <title>Repro page</title>
        <meta name="description" content="A page with two to-dos on the user." />
      </head>
      <body>
        <main class="layout-column">
          <h1>Repro page</h1>
          <section>
            <h2>First section</h2>
            <p>This section has no id.</p>
          </section>
          <section id="second">
            <h2>Second section</h2>
            <p>This section has the id <code>second</code>.</p>
          </section>
        </main>
      </body>
    </html>
  2. Stamp and serve it:

    leaf page stamp <dir> --text "Initial"
    leaf server start <dir> --persistent --host 127.0.0.1
    
  3. Open two to-dos on the user:

    leaf task open <dir> page "Can you confirm the page-level build works?" --on user
    leaf task open <dir> second "Can you try the second section's command?" --on user
    
  4. Open the page, open the page menu, press "On me: 2", then press Show on the page-level entry.

leaf page state lists both to-dos under queues.on_user, with subjects {"kind": "page"} and {"kind": "element", "id": "second"}. This reproduces on the build below and on 65e63d9 in headless Chromium. It was first seen on 65e63d9 in desktop Chrome, with a Claude Code session holding the server.

Seen on leaf cc7db77, installed 2026-10-21T23:46:25-07:00.

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

Activity

  1. added
    bug
    on Oct 22, 2026
  2. leaf-agent commented on Oct 22, 2026

    @leaf-agent
    Collaborator

    Reproduced on current main. The focused browser case in #3620 reaches the page heading with m and the element with Show, then finds neither to-do title visible. Its PR test job fails on that assertion (False, False).

    The walk arrives at the subject, while the title and Done control are rendered in the On me card. #3620 deliberately keeps this as a failing reproduction. The remaining decision is how to show the full to-do and its touch-accessible Done action at the destination; #3617 discusses the subject presentation. The issue remains open for that runtime fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions