Skip to content

Link WebSocket holds: an older holds file without marks breaks status reads when the ref key is unreadable #8607

Closed

Description

@lidge-jun

From the fresh final review of #8593 at 966f0ee (approved with nits; this cannot happen while the link WebSocket switch is off, because no holds file exists).

In src/link/ws-activity-holds.ts, the path taken when the activity ref key cannot be read keeps a stored hold without copying marks into an array, while the normal path does (marks: [...(hold.marks ?? [])]). A holds file whose entry has no marks field is accepted by isLinkHolds, so with an unreadable or unwritable activity-ref-key the functions summary(), hasMarks() and finished() read .marks.length of undefined. The ?children=1 and ?transport=1 status reads then throw. The relay's own hasMarks call is caught, so relays keep working.

Smallest fix: map the entry in that path the way the normal path does, { ...hold, pendingKeys: [...hold.pendingKeys], marks: [...(hold.marks ?? [])], seq: ++holdSeq }, and add a test with an older holds file and an unreadable key.

Activity

  1. added
    bug
    on Nov 12, 2026
  2. added
    streaming
    on Nov 12, 2026
  3. coderabbitai commented on Nov 12, 2026

    @coderabbitai
    Contributor
    🔗 Related PRs

    #8508 - feat(link): show Child version, install kind and catalog freshness; ocx link check [merged]


    📝 Issue Planner

    Check the box below or use the @coderabbitai plan command to generate an implementation plan and prompts that you can use with your favorite coding assistant.

    • Create Plan

    🧪 Issue enrichment is currently in open beta.

    To disable automatic issue enrichment, add the following to your .coderabbit.yaml:

    issue_enrichment:
      auto_enrich:
        enabled: false

    💬 Have feedback or questions? Drop into our discord!

  4. added a commit that references this issue on Nov 12, 2026
    97ef6ed
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

    bugstreaming

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions