Skip to content

fix: improve context clearing in new sessions and file mentions - #149

Merged
sudo-tee merged 1 commit into
sudo-tee:mainfrom
aweis89:fix/context-clearing-improvements
Dec 20, 2025
Merged

fix: improve context clearing in new sessions and file mentions#149
sudo-tee merged 1 commit into
sudo-tee:mainfrom
aweis89:fix/context-clearing-improvements

Conversation

@aweis89

@aweis89 aweis89 commented Dec 19, 2025

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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