Skip to content

bug(rooms): a stopped mention chain is a dead end, with no plain explanation and no way to continue #4302

Closed

Description

@dolho

Summary

When agents in a room hand the conversation back and forth for long enough, the room posts "Mention chain stopped at depth 8 (would have woken …)" and stops. The line doesn't say what happened in plain words or what to do, and there's no control to continue. The person has to work out that typing a message restarts it.

Context

Reported from real use: two agents were working through a review, the chain stopped mid-exchange, and the person had to step in.

src/backend/shared_sessions/service.py: ROOM_MAX_CHAIN_DEPTH = 8 is a fixed constant, counted from one human message. The stop is posted by _post_system in the mention dispatch. The cap protects spend and should stay. The problem is the dead end.

Acceptance Criteria

  • The stop line says in plain words that the agents paused to wait for a person, who was next, and how to carry on.
  • A Continue control wakes the agent that was next, as a person's action, starting a fresh count. Only someone who may post in the room sees it.
  • It's offered once per stop, and it's gone or disabled when the room has moved on or is closed.
  • A double click wakes once, and a Continue after a restart doesn't wake twice.
  • Room message and cost budgets still apply, and a Continue refused by budget says why.
  • The same stop reads clearly in light and dark, and on a phone.
  • Tests: the stop at the cap, Continue through the real route, a collaborator with and without rights, a closed room.
  • docs/user-docs/ explains the pause.

Not in scope

Raising the cap, or making it configurable. Worth considering only if the pause keeps interrupting after this ships.

Technical Notes

Requirement update first (docs/memory/requirements/). Frontend under docs/memory/design-system-contract.md.

Activity

  1. added
    priority-p2
    type-bug
    theme-ui-ux
    status-ready
    on Nov 6, 2026
  2. dolho commented on Nov 6, 2026

    @dolho
    ContributorAuthor

    Tracked alongside related Workspace work in the private tracker. This issue stays here, and can be picked up on its own.

  3. vybe commented on Nov 8, 2026

    @vybe
    Contributor

    Draft PR: #4365. It stores the pause as a plain-words system row with a Continue control. Only a person may press it, and each pause wakes the next agent once with a fresh count. The cap is unchanged. Not checked yet: light and dark mode and phone (AC6).

  4. vybe commented on Nov 8, 2026

    @vybe
    Contributor

    Validation: APPROVE on fce0c990c (PR #4365, review by the engineer). The fix commit adds only the router's # mcp: header; the new POST /{room_id}/continue route stays person-only and has no MCP tool. All blocking checks are green on the tip. #4365 is now ready for review.

    Before merge: the light/dark/phone check of the Continue button (AC6) has not been run, and tests/registry.json / core-agent.md conflict with sibling PRs (#4363/#4366/#4367). Merge order is the operator's call.

  5. added
    status-in-dev
    on Nov 9, 2026
  6. removed
    status-ready
    on Nov 9, 2026
  7. dolho commented on Nov 9, 2026

    @dolho
    ContributorAuthor

    Impact, from the field report: the stop cost one extra message, not lost work. The work was almost finished when the chain stopped, and typing a message carried it on. The fix (#4365) is still worth having, but this isn't a blocker people hit today.

  8. removed
    status-in-dev
    on Nov 18, 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

    priority-p2theme-ui-uxtype-bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions