Skip to content

Conversation

@aweis89
Copy link
Contributor

@aweis89 aweis89 commented Dec 19, 2025

Summary

  • Clear attachments when starting a new session with /new command

Fixes

  1. Context persisting across new sessions: The /new command now calls context.unload_attachments() to clear mentioned files, selections, and linter errors when starting a new session

Test plan

  • Run unit tests
  • Manually test /new command clears context

- Clear attachments when starting a new session with /new command
- Toggle file removal when selecting already-mentioned files with @ trigger
- Fixes issue where context persisted across new sessions
- Fixes issue where @ file selection only added files, never removed them
@aweis89 aweis89 force-pushed the fix/context-clearing-improvements branch from 28a33e7 to f5a6f4d Compare December 19, 2025 22:12
@sudo-tee
Copy link
Owner

Thanks for the PR

@sudo-tee sudo-tee merged commit 698c7f8 into sudo-tee:main Dec 20, 2025
5 checks passed
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.

2 participants