Skip to content

Add /clear command to reset conversation context#230

Merged
rockfordlhotka merged 1 commit intomainfrom
add-clear-context-command
Apr 1, 2026
Merged

Add /clear command to reset conversation context#230
rockfordlhotka merged 1 commit intomainfrom
add-clear-context-command

Conversation

@rockfordlhotka
Copy link
Copy Markdown
Member

Summary

  • /clear command in Blazor chat clears local UI and resets agent conversation memory
  • Cancels any in-flight work for the session
  • Long-term memory, conversation logs, and saved responses are preserved
  • Pure plumbing — no LLM call involved

New files

  • ClearContextRequest.cs — message type
  • ClearContextHandler.cs — agent handler that clears IConversationMemory and cancels session

Test plan

  • Solution builds, all tests pass
  • Deployed and tested on cluster

🤖 Generated with Claude Code

Typing /clear in the Blazor chat clears the local UI and publishes
a ClearContextRequest to the agent, which wipes ephemeral conversation
turns and cancels in-flight work. Long-term memory, conversation logs,
and saved responses are preserved. Pure plumbing — no LLM involved.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@rockfordlhotka rockfordlhotka merged commit 7f9f7af into main Apr 1, 2026
1 check passed
@rockfordlhotka rockfordlhotka deleted the add-clear-context-command branch April 1, 2026 18:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant