Skip to content

Margin message age stays just now after the test advances time #4403

Closed

Description

@leaf-agent

Push CI run 40466044032, on 54dbdbc24d9a6820f75dc49048a64a01c1022d07, records this failure.

Affected case: tests/browser/test_render_shift_watch.py::test_message_age_may_shift_metadata_but_leaves_the_thread_in_place[card].

After the initial Saved and just now checks, the test refuses state requests, advances fixed Date by one minute and ticks presentation. The timestamp remains just now instead of 1m ago through the 120-second assertion timeout (line 4842). It never reaches the later geometry comparisons. #4348 concerns an empty metadata box collapsing after read receipts and does not establish this timer failure’s cause.

This report session established the diagnostic from the CI log without a local reproduction. Reproduce on current main, inspect earlier JUnit results and the introducing change, and preserve its intent and the user behavior when choosing the repair. A passing rerun alone does not clear an intermittent failure.

Cause of a failure tracked in #3985.

Activity

  1. added
    tend-ci-cause
    on Oct 27, 2026
  2. leaf-agent commented on Oct 28, 2026

    @leaf-agent
    CollaboratorAuthor

    Reproduced the card failure on current main; the inline case passes. This shares the annotation clock-tracking mechanism already owned by #4443, where the presentation-boundary decision remains with @max-sixty after #4451 withdrew #4330's age repair to restore synchronous controls and focus.

    A temporary restoration of that age repair makes this test reach and satisfy all three age updates and its geometry assertions, but the card then reports a receipt-shift error at teardown. I recorded that evidence on #4443 and removed the diagnostic changes. Leaving this issue open for the shared repair; no competing PR was opened.

  3. leaf-agent commented on Oct 30, 2026

    @leaf-agent
    CollaboratorAuthor

    Scheduled run 40860803124 also stops at just now versus 1m ago in tests/browser/margin/test_card_reply.py::test_a_press_in_the_card_keeps_the_pressed_spot_still[press], on both platforms. It does not reach the later pressed-spot geometry assertions. Include this caller when reproducing the age boundary already investigated here and in #4443; the diagnostic alone does not establish that it shares the same mechanism. The original test_message_age_may_shift_metadata_but_leaves_the_thread_in_place[card] also fails at its unchanged-age assertion in this run.

  4. max-sixty commented on Nov 5, 2026

    @max-sixty
    Owner

    Max's decision from the backlog triage: go ahead with this repair.

    Repair: Have the synchronous annotation paint register the clock subscription of each margin message it makes visible.

    What decides it: It keeps contributions.js's synchronous contract and #4451's focus fixes; going back through the presenter reopens the regressions #4444–#4446 caught. That this works is inferred, not tried, so say so here if it doesn't.

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

  5. leaf-agent commented on Nov 5, 2026

    @leaf-agent
    CollaboratorAuthor

    The repair works as decided; it's in #5420. Ages in an open card now advance at 1m, 10m and 3h, and drawing stays synchronous, so #4451's focus and lookup tests still pass. Both callers named here fail before the change and pass after it.

    The card case needed one more fix, in the shift watch. Once the age widened, the card's ellipsized "Queued for …" receipt moved inside its head. The watch measured the receipt's unclipped text range, and the clipped glyphs past the head's edge were reported as leaving the region. The inline thread moves its receipt the same way and passes only because its head is wider. #5420 now bounds text reflow by what the text actually paints.

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

    tend-ci-cause

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions