feat: add /new to slash command menu for V1 conversations#13599
feat: add /new to slash command menu for V1 conversations#13599hieptl merged 1 commit intoOpenHands:mainfrom
Conversation
hieptl
left a comment
There was a problem hiding this comment.
Hello @karanjaxyz,
Thank you for creating this pull request!
Could you please add tests to cover the front-end changes?
Thank you very much! 🙏
| } | ||
|
|
||
| /** Built-in slash commands surfaced in the menu for V1 conversations. */ | ||
| const BUILT_IN_COMMANDS: SlashCommandItem[] = [ |
There was a problem hiding this comment.
suggestion (blocking): Could you please move this into the constants.ts file?
Thank you! 🙏
|
Hello @karanjaxyz, While testing the changes locally, I came across an issue: Issue (blocking):
Expected behavior:
Please refer to the video below for more details. issue.movThank you very much! 🙏 |
|
Hi, I’d like to work on this issue. Can you confirm it’s still available? |
|
A fix is in the works |
|
want to contribute on this. |
5d372a7 to
1d253f3
Compare
ab5b0f3 to
bd3d202
Compare
|
Hi @hieptl
|
There was a problem hiding this comment.
Hello @karanjaxyz,
Thank you for creating this pull request!
I have reviewed, approved, and merged it. Great work—much appreciated.
Thank you very much! 🙏
Summary of PR
Add
/newto the GUI slash command menu so users can discover it alongside other slash commands, instead of only learning about it through docs or release notes.Changes are confined to
frontend/src/hooks/chat/use-slash-command.ts:BUILT_IN_COMMANDSarray with/newas a standardSlashCommandItemuseActiveConversationslashItemsmemoNo changes to types, the menu component, or the
/newhandler inchat-interface.tsx.Demo Screenshots/Videos
Change Type
Checklist
Fixes
Resolves #12847
Release Notes
The
/newslash command now appears in the slash command menu for V1 conversations, making it easier to discover. Selecting it inserts/newinto the chat input, which creates a new conversation while preserving the existing runtime/sandbox.