Skip to content

Endpoint notifier drops a to-human message after a session changes project: its seen key has no project #761

Closed

Description

@SSFSKIM

What is wrong

src/endpoint/notify.ts hostMessage (line ~185 at master 77af813) drops a to-human message event when it has already seen its (writer, seq). The key holds no project: ${event.writer}\n${event.seq} in #seen, the last 4,096 ids, kept in memory.

sminos numbers a writer's host-store events per project (projects/<id>/host/<writer>.jsonl, where seq is the file's last line plus one), and a writer is <host>/<session>. A session whose project changes (sminos join) starts again at seq 1 in the new project's store, under the same writer. So every message it writes there whose seq was already seen under its old project is dropped:

  • no wrote reaches the hub, so the owner is not notified;
  • the sent callback never runs, so RL10's durable mark (src/endpoint/rl10/link.ts ~818-825, keyed by project, which is right) does not move;
  • sminos's resend of the last 50 is dropped the same way.

It lasts until the endpoint restarts or the old id leaves the 4,096.

Reported by the sminos session channel-thread-coordination-design (222553cd) from reading the code; the architect checked the code at 77af813 (SessionLaneMessage carries project). Not reproduced.

Work

  • Put the project in the key: ${message.project}\n${event.writer}\n${event.seq}.
  • Test, red first: two host messages with the same (writer, seq) and different projects each produce a wrote and each call sent; the same (project, writer, seq) twice still produces one.

Acceptance

The unit test passes; notify's existing tests pass.

Activity

  1. added
    bug
    status:ready-for-implementer
    priority:P2
    on Nov 17, 2026
  2. added
    status:in-progress
    and removed
    status:ready-for-implementer
    on Nov 20, 2026
  3. SSFSKIM commented on Nov 20, 2026

    @SSFSKIM
    OwnerAuthor

    [board] in-progress: batch 7, group C

  4. added
    status:in-review
    and removed
    status:in-progress
    on Nov 20, 2026
  5. SSFSKIM commented on Nov 20, 2026

    @SSFSKIM
    OwnerAuthor

    [board] in-review: batch 7, PR #804

  6. removed
    status:in-review
    on Nov 20, 2026
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

    bugpriority:P2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions