Skip to content

Verify /new and /clear slash commands work end-to-end #124

Description

@harrryyd

Problem

/new (archive-and-new) and /clear [N] (context trim) were implemented before PR #108 but have not been tested end-to-end.

What to verify

/clear

  • /clear (no argument) dispatches thread.context.trim with no keepLastNTurns
  • /clear 3 dispatches thread.context.trim with keepLastNTurns: 3
  • Decider emits thread.trim-point-created and thread.session-stop-requested
  • Trim point divider appears in UI with correct pruned message count
  • Messages before trim point are collapsible/expandable
  • Provider session restarts on next turn with correct trim boundary
  • Blocked during active turn
  • Slash command autocomplete shows /clear and /clear N

/new

  • /new dispatches thread.archive-and-new
  • Decider emits thread.archived-and-new-created
  • New thread inherits worktree, branch, project from archived thread
  • Archived thread remains accessible in thread list
  • Blocked during active turn
  • Slash command autocomplete shows /new

Related

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions