Repository navigation
feat(gui): composer /skill menu, mid-text triggers, newline and label fixes - #50
Merged
Merged
Conversation
… fixes
- Composer placeholder now hints @ files and / skills (en/zh)
- Ctrl+Enter (like Shift+Enter) inserts a newline; trailing newlines
grow the editor via a zero-width-space pad stripped on serialize
- '/' opens an installed-skills menu: English name + UI-language
description (catalogue zh fallback), EN/ZH search, Blocks icon,
scrollable with selection-into-view; '@' file menu gets the same
scrolling; both triggers now work mid-sentence (CJK-friendly) while
emails/paths/dates stay inert
- Selected skills insert as atomic highlighted pills that serialize
back to /name and are rebuilt on draft restore
- Fix merged tool-call labels ('Ran 2 files edited' -> 'Edited 2
files'); group labels are self-contained past tense, running labels
no longer read 'Running reading'
- Rename 'Select conversations' to 'Select chats'
- Agent system prompt: /<skill-name> anywhere in a user message is an
explicit skill invocation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
/skill menu: pop-up list of installed skills with English name + UI-language description (falls back to platform catalogue for zh), EN/ZH search,Blocksicon, scrollable with keyboard-follow. Selected skills insert as atomic highlighted pills.@file menu gains the same scrolling behavior; both triggers now fire mid-sentence (CJK-friendly) while emails/paths/dates remain inert./<skill-name>anywhere in a user message as an explicit skill invocation.Files changed
agent/src/prompt/mod.rsgui/src/features/agent/MentionEditor.tsxgui/src/features/agent/Composer.tsxgui/src/features/agent/AgentActivityList.tsxgui/src/i18n/locales/{en,zh}/agent.jsongui/src/i18n/locales/{en,zh}/layout.jsonChecks
tsc --noEmit✓eslint src✓ (1 pre-existing warning only)vitest run: 197 passed ✓cargo clippyclean ✓cargo test build_prompt: 5 passed ✓