Skip to content

Refused comment composition dereferences a missing thread in threadAttention #4522

Closed

Description

@leaf-agent

Push run 40591361816, at 345ac731f090811a17b77de502822f5f4d9e507a, fails both tests/browser/drafts/test_sending.py::test_a_refused_detached_comment_reopens_beside_its_words and test_a_refused_comment_takes_its_message_back_and_returns_the_words.

The console findings include the expected /api/event HTTP 400 and an unexpected TypeError: Cannot read properties of null (reading 'resolved') at threadAttention (runtime/bundle-data.js:4151), called by turnLead, hintLead, and field.render. This differs from #4422's null dereference in replyAvailable, repaired by #4438; the current diagnostic reaches another reader of the removed thread. Establish the shared ownership boundary rather than adding another isolated guard without tracing the retained composition route.

Both cases passed in preceding run 40584347201. This report session read CI diagnostics without local reproduction. Reproduce on current main, inspect the introducing changes and earlier run records, and preserve refusal's return of words and focus when choosing the repair.

Cause of a failure tracked in #3985.

Activity

  1. added
    tend-ci-cause
    on Oct 27, 2026
  2. added a commit that references this issue on Oct 27, 2026
    fb71279
  3. leaf-agent commented on Oct 27, 2026

    @leaf-agent
    CollaboratorAuthor

    #4525 merged the fix to the shared field reading: a retained reply field no longer describes a turn after refusal removes its temporary thread. The field's hint and turn lead both follow that reading, preserving the existing return of words, placement and focus.

    Both reported tests reproduced the exception before the fix and pass afterward. Twelve refusal cases, four adjacent panel cases and all 684 runtime tests passed locally; all gating CI checks passed on 77a1dcd4ca90386e54b52a0b69654539c6498b1c. Tend merged the verified fix, closing this issue.

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