Skip to content

feat: add /clear slash command to reset conversation context#771

Merged
srtab merged 2 commits intomainfrom
feat/add-clear-slash-command
Feb 2, 2026
Merged

feat: add /clear slash command to reset conversation context#771
srtab merged 2 commits intomainfrom
feat/add-clear-slash-command

Conversation

@daiv-agent
Copy link
Contributor

@daiv-agent daiv-agent bot commented Feb 2, 2026

This PR introduces a new /clear slash command that allows users to reset the conversation context in issues and merge requests, effectively starting a fresh conversation with DAIV.

Key Changes:

  • Added ClearSlashCommand class implementing the /clear command for issue and merge request scopes.
  • Implemented logic to delete the conversation thread associated with the current issue or merge request.
  • Updated __init__.py to include the new ClearSlashCommand.
  • Extended slash commands documentation with details and usage examples for the /clear command.
  • Added unit tests covering successful execution, error handling, and scope validation for the clear command.
  • Updated CHANGELOG.md to document the addition of the /clear slash command.

Closes: #737

⚠️ DAIV can make mistakes. Please review the changes and merge the MR if everything looks good.


💡 Instructions for the reviewer:

  • 💬 DAIV will address comments for you in the following ways:

    • Open a discussion on the merge request overview and mention @daiv-agent;
    • Leave comments on the files and mention @daiv-agent;
    • Leave comments on specific lines of the file and mention @daiv-agent.
  • 📝 Edit the original issue (Add /clear slash command #737) to get DAIV to recreate the MR from scratch.

@daiv-agent daiv-agent bot added the daiv Delegate issues to DAIV agent label Feb 2, 2026
@srtab
Copy link
Owner

srtab commented Feb 2, 2026

@daiv-agent fix the pipeline

@daiv-agent
Copy link
Contributor Author

daiv-agent bot commented Feb 2, 2026

Fixed! The formatting issue has been resolved. The pipeline should pass now.

@srtab srtab merged commit cf7a601 into main Feb 2, 2026
7 checks passed
@srtab srtab deleted the feat/add-clear-slash-command branch February 2, 2026 22:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

daiv Delegate issues to DAIV agent

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add /clear slash command

1 participant