feat: concurrent chat panes and on-device SenseVoice input - #623
Open
zephyr7zhang wants to merge 1 commit into
Open
feat: concurrent chat panes and on-device SenseVoice input#623zephyr7zhang wants to merge 1 commit into
zephyr7zhang wants to merge 1 commit into
Conversation
Keep multiple conversations mounted in tabbed panes so switching sessions no longer tears down in-flight agent runs. Add a local SenseVoice microphone button that transcribes in-process without sending audio or API keys to a cloud STT service.
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
This PR adds two local-only features:
sherpa-onnx-node). Audio never leaves the machine, and no cloud STT API keys are used or committed.Also included:
toolNames: []when creating a session (avoids merging/creating a tools-off session)."none"(chat-only) tool preset, so coding tools stay available by default.Why
Today, selecting another session tears down
ChatWindow/useAgentSession. That stops the running agent and makes it impossible to work on two chats at once.Voice input is fully local (Hugging Face / hf-mirror model files under
~/.pi/voice/). Nothing in this PR reads~/.pi/agent/auth.json, env API keys, or other credentials.How it works
Panes
lib/chat-panes.tstracks open panes.AppShellkeeps every openChatWindowmounted and togglesisActive.Voice
POST /api/voice/preparedownloads the SenseVoice int8 model on first use.POST /api/voice/transcribeaccepts WAV bytes and returns text.Tests
lib/chat-panes.test.mjslib/wav-pcm.test.mjscomponents/AppShell.workspace-memory.test.mjs(mounted-pane assertion)lib/i18n/registry.test.mjskey parityOut of scope (not in this PR)
Local Windows launchers and a machine-specific
fs.readlinkpatch underscripts/were left untracked on purpose.中文摘要