Skip to content

Show a failed harness as an error and end the session #808

Closed

Description

@EVWorth

Severity: P2.

What happens

  1. Open ?mock=connected, click AI, then Start GitHub Copilot. The session opens normally.
  2. Send "hello".
  3. The transcript shows "GitHub Copilot is not signed in. Run copilot in a terminal, sign in with /login, then start a new session."
    • It is muted grey italic, styled exactly like the "Stopped." note after a cancel, and the backticks show literally.
    • The session stays open and the message box stays enabled.
    • Every later message fails the same way.
    • There is no button to start a new session.

Cause

  • src/lib/agent-transcript.ts:123: a failed event becomes an ordinary note.
  • src/stores/agentSessionStore.ts:141: it only clears thinking and leaves the session live.

Fix

Add an error transcript item rendered with role="alert" and the error colour. On failed, disable the input and show a "Start a new session" button.

Part of #783.

Activity

  1. added
    bug
    on Oct 21, 2026
  2. added a commit that references this issue on Oct 24, 2026
    8f03a3f
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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions