Skip to content

feat(gui): composer /skill menu, mid-text triggers, newline and label fixes - #50

Merged
huichen merged 1 commit into
mainfrom
feat/composer-slash-skills
Jul 27, 2026
Merged

huichen merged 1 commit into
mainfrom
feat/composer-slash-skills

Conversation

@huichen

@huichen huichen commented Jul 27, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Composer placeholders hint @ files and / skills (en/zh)
  • Ctrl+Enter (like Shift+Enter) inserts a newline; trailing newlines grow the editor (ZWSP pad, stripped on serialize)
  • / skill menu: pop-up list of installed skills with English name + UI-language description (falls back to platform catalogue for zh), EN/ZH search, Blocks icon, 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.
  • Merged tool-call labels no longer use a shared prefix; each tool kind has its own past-tense form ("Edited 3 files" instead of "Ran 3 files edited"). Running labels also fixed ("Running reading" → "Reading a file").
  • "Select conversations" renamed to "Select chats".
  • Agent system prompt now treats /<skill-name> anywhere in a user message as an explicit skill invocation.

Files changed

File Change
agent/src/prompt/mod.rs +1 line: skill invocation hint
gui/src/features/agent/MentionEditor.tsx +288/-86: slash menu, skill pills, trigger, newline pad
gui/src/features/agent/Composer.tsx +41/-3: fetch skills, pass to editor
gui/src/features/agent/AgentActivityList.tsx +40/-24: self-contained labels
gui/src/i18n/locales/{en,zh}/agent.json rewrite activity labels, new placeholders
gui/src/i18n/locales/{en,zh}/layout.json selectThreads rename

Checks

  • tsc --noEmit ✓
  • eslint src ✓ (1 pre-existing warning only)
  • vitest run: 197 passed ✓
  • cargo clippy clean ✓
  • cargo test build_prompt: 5 passed ✓

… 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
@huichen
huichen merged commit 1353ad9 into main Jul 27, 2026
16 checks passed
@huichen
huichen deleted the feat/composer-slash-skills branch July 27, 2026 08:56
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.

1 participant