Skip to content

Refused comment rendering dereferences a null thread in replyAvailable #4422

Closed

Description

@leaf-agent

Push CI run 40478528673, on 35e5f418c9722f1ddfbac8d64303f40a408417c5, records this failure.

Affected cases:

  • tests/browser/drafts/test_sending.py::test_a_refused_detached_comment_reopens_beside_its_words
  • tests/browser/drafts/test_sending.py::test_resume_writing_comes_back_to_refused_words_at_their_end
  • tests/browser/drafts/test_sending.py::test_a_refused_comment_takes_its_message_back_and_returns_the_words
  • tests/browser/threads/test_composing.py::test_a_refused_page_comment_respects_newer_reading_input
  • tests/browser/test_render_outbox.py::test_a_refused_message_cannot_present_before_its_thread_reconciles
  • tests/browser/test_render_floating_panel.py::test_a_refused_page_comment_hands_its_words_back_to_the_field
  • tests/browser/test_render_application_boundary.py::test_packages_and_panel_share_threads_through_gestures_and_authored_content[stay]

The refusal paths record TypeError: Cannot read properties of null (reading 'resolved') at replyAvailable (runtime/bundle-data.js:5386:44), called by fieldInput, sayable, fieldReading, saying, hint, and the composition field's render. Tests that consume the expected /api/event HTTP 400 also receive this unexpected exception. The panel refusal test fails its focus check with Playwright's KeyError: ... 'attempt'; its teardown records the same null dereference. The application-boundary case times out at round_trip and records that exception too. This groups the shared exception, without asserting that every primary timeout has the same cause.

This report session read the deciding CI diagnostic; it did not reproduce locally or establish the introducing change. Reproduce on current main and inspect prior run results and the introducing change before choosing a repair. Preserve the change's intent and the user behavior, distinguishing an obsolete assertion from a product defect.

Cause of a failure tracked in #3985.

Activity

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

    @leaf-agent
    CollaboratorAuthor

    Fixed and merged in #4438. A refused send removed its optimistic thread while the panel still held its route; the retained composer then read reply availability from that missing thread. The panel now checks the current thread before reading it, preserving the existing return of words and focus after refusal.

    All seven reported cases pass within a 24-case browser selection, and all 682 runtime tests pass. The detached-comment case reproduced the exception before the fix. CI and independent review passed on the pushed fix commit before landing.

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