Skip to content

armgit / Orkas

Public Imported from GitHub
0

Orkas is an open-source (MIT), local-first AI team for your desktop: a Commander turns your goal into to-dos and coordinates 16 built-in specialist agents plus Claude Code, Codex, OpenCode, OpenClaw and Hermes, with projects, scheduled automations and connectors. Free app for macOS & Windows; built-in models or your own keys.

Strip voice input remnants from OrkasOpen

wytaf4ed8a7d3c1
diff --git a/src/main/index.ts b/src/main/index.ts
index 910da312..c4b62280 100644
--- a/src/main/index.ts
+++ b/src/main/index.ts
@@ -789,13 +789,10 @@ if (!gotLock) {
registerKbFileProtocol();
registerChatMediaProtocol();
registerChatAppProtocol();
- // Renderer permission gate (identical in dev and packaged). Microphone:
- // the chat-composer voice-to-text button calls getUserMedia. Clipboard:
- // copy-to-clipboard UI actions. Everything else is denied. On macOS the
- // OS-level mic prompt still fires on first capture (Info.plist carries
- // NSMicrophoneUsageDescription — see the `build.mac.extendInfo` block).
+ // Renderer permission gate (identical in dev and packaged). Clipboard:
+ // copy-to-clipboard UI actions. Everything else is denied.
session.defaultSession.setPermissionRequestHandler((_wc, permission, callback) => {
- callback(permission === 'media' || permission === 'clipboard-read' || permission === 'clipboard-sanitized-write');
+ callback(permission === 'clipboard-read' || permission === 'clipboard-sanitized-write');
});
registerIpc();
clientConfigFeature.clientConfig.subscribeAll((keys) => {
diff --git a/src/renderer/index.html b/src/renderer/index.html
index 2dabf6ad..d1e12825 100644
--- a/src/renderer/index.html
+++ b/src/renderer/index.html
@@ -92,10 +92,8 @@
<div class="chat-attachments" id="new-chat-attachments" style="display:none"></div>
</div>
<textarea id="new-chat-input" data-i18n-placeholder="new_chat.input_placeholder" placeholder="Type @ to choose agents, skills, connectors." rows="2"></textarea>
- <!-- Composer bottom bar order matches PC/docs/design/PATTERNS.md
- P11: [+] | divider | [To] | [workspace - JS-injected] |
- [skill] | spacer | [mic] | [send]. Mic+send are pushed
- right by `.chat-mic-btn { margin-left: auto }`. -->
+ <!-- Composer bottom bar: [+] | divider | [To] | [workspace - JS-injected] |
+ [skill] | spacer | [send]. The send button owns the spacer. -->
<div class="chat-bottom-bar">
<button type="button" class="chat-attach-btn" id="new-chat-attach-btn" data-i18n-title="new_chat.attach_title" title="Upload attachment (text / PDF / Word / image / video)">+</button>
<span class="chat-composer-divider" aria-hidden="true"></span>
@@ -111,12 +109,6 @@
<span class="chip-label"></span>
<span class="chip-close" data-i18n-title="chat.chip_remove_title" title="Remove">×</span>
</div>
- <!-- Voice-to-text mic button (stripped in OrkasOpen — see OpenSource/SyncCode/strip-rules.json).
- Carries `margin-left: auto` via .chat-mic-btn so it + the send
- button float to the right edge per design P11. -->
- <button type="button" class="chat-attach-btn chat-mic-btn" id="new-chat-mic-btn" data-i18n-title="chat.mic_title" title="Voice input">
- <span data-ui-icon="mic" data-ui-icon-class="chat-mic-icon"></span>
- </button>
<button id="new-chat-send-btn" class="chat-send-btn" data-i18n-title="new_chat.send_title" title="Send">
<span data-ui-icon="send" data-ui-icon-class="send-icon"></span>
</button>
@@ -232,10 +224,8 @@
</div>
<div class="chat-quote-preview" id="chat-quote-preview" style="display:none"></div>
<textarea id="chat-input" data-i18n-placeholder="chat.input_placeholder" placeholder="Type @ to choose agents, skills, connectors." rows="2"></textarea>
- <!-- Composer bottom bar order matches PC/docs/design/PATTERNS.md
- P11: [+] | divider | [To] | [workspace - JS-injected] |
- [skill] | spacer | [mic] | [send]. Mic+send are pushed right
- by `.chat-mic-btn { margin-left: auto }`. -->
+ <!-- Composer bottom bar: [+] | divider | [To] | [workspace - JS-injected] |
+ [skill] | spacer | [send]. The send button owns the spacer. -->
<div class="chat-bottom-bar">
<button type="button" class="chat-attach-btn" id="chat-attach-btn" data-i18n-title="chat.attach_title" title="Upload attachment (text / PDF / Word / image / video)">+</button>
<span class="chat-composer-divider" aria-hidden="true"></span>
@@ -249,12 +239,6 @@
<span class="chip-label"></span>
<span class="chip-close" data-i18n-title="chat.chip_remove_title" title="Remove">×</span>
</div>
- <!-- Voice-to-text mic button (stripped in OrkasOpen — see OpenSource/SyncCode/strip-rules.json).
- Carries `margin-left: auto` via .chat-mic-btn so it + the send
- button float to the right edge per design P11. -->
- <button type="button" class="chat-attach-btn chat-mic-btn" id="chat-mic-btn" data-i18n-title="chat.mic_title" title="Voice input">
- <span data-ui-icon="mic" data-ui-icon-class="chat-mic-icon"></span>
- </button>
<button id="chat-send-btn" class="chat-send-btn" data-i18n-title="chat.send_title" title="Send">
<span data-ui-icon="send" data-ui-icon-class="send-icon"></span>
<span data-ui-icon="stop" data-ui-icon-class="stop-icon"></span>
@@ -579,7 +563,7 @@
<div class="chat-attachments" id="project-chat-attachments" style="display:none"></div>
</div>
<textarea id="project-chat-input" data-i18n-placeholder="project.chat.placeholder" placeholder="Type @ to choose agents, skills, connectors." rows="2"></textarea>
- <!-- Bottom bar: attach | divider | recipient | workspace (JS-injected) | skill | spacer | mic | send. -->
+ <!-- Bottom bar: attach | divider | recipient | workspace (JS-injected) | skill | spacer | send. -->
<div class="chat-bottom-bar">
<button type="button" class="chat-attach-btn" id="project-chat-attach-btn" data-i18n-title="project.files.add" title="Add file">+</button>
<span class="chat-composer-divider" aria-hidden="true"></span>
@@ -593,9 +577,6 @@
<span class="chip-label"></span>
<span class="chip-close" data-i18n-title="chat.chip_remove_title" title="Remove">×</span>
</div>
- <button type="button" class="chat-attach-btn chat-mic-btn" id="project-chat-mic-btn" data-i18n-title="chat.mic_title" title="Voice input">
- <span data-ui-icon="mic" data-ui-icon-class="chat-mic-icon"></span>
- </button>
<button type="button" class="chat-send-btn" id="project-chat-send-btn" data-i18n-title="chat.send_title" title="Send">
<span data-ui-icon="send" data-ui-icon-class="send-icon"></span>
</button>
@@ -1288,9 +1269,6 @@
<span class="chip-label"></span>
<span class="chip-close" data-i18n-title="chat.chip_remove_title" title="Remove">×</span>
</div>
- <button type="button" class="chat-attach-btn chat-mic-btn" id="auto-mic-btn" data-i18n-title="chat.mic_title" title="Voice input">
- <span data-ui-icon="mic" data-ui-icon-class="chat-mic-icon"></span>
- </button>
</div>
</div>
</div>
@@ -1469,13 +1447,12 @@
<script src="./modules/boot.js"></script>
<!-- Account login gate + Settings account card — stripped in OrkasOpen. login_panel.js must load
after boot.js (it calls bootApp); account_settings.js is invoked from settings.js::loadSettings. -->
- <!-- Pro entitlement gate (renderer-side). Loads before voice / sync so window.proGate
+ <!-- Pro entitlement gate (renderer-side). Loads before sync so window.proGate
exists when those modules attach button handlers. Stripped in OrkasOpen. -->
<script src="./modules/pro_gate.js"></script>
<script src="./modules/avatar.js"></script>
<script src="./modules/avatar-picker.js"></script>
<script src="./modules/chat-input-form.js"></script>
- <!-- Voice-to-text composer button — stripped in OrkasOpen (no Server). -->
<script src="./modules/chat-lightbox.js"></script>
<script src="./modules/icons.js"></script>
<script src="./modules/chat-file-viewer.js"></script>
diff --git a/src/renderer/locales/en.json b/src/renderer/locales/en.json
index 51f764f8..34612174 100644
--- a/src/renderer/locales/en.json
+++ b/src/renderer/locales/en.json
@@ -22,11 +22,11 @@
"account.subscription_status_expired": "Subscription ended",
"account.subscription_status_free": "Free plan",
"account.subscription_status_coming_soon": "Pro coming soon",
- "account.subscription_detail_active": "Cloud storage, cross-device sync, and voice input are unlocked.",
+ "account.subscription_detail_active": "Cloud storage and cross-device sync are unlocked.",
"account.subscription_detail_will_cancel": "You keep Pro until the end of the period; then revert to Free.",
"account.subscription_detail_past_due": "Update your payment method to avoid losing Pro.",
"account.subscription_detail_grace": "Cloud data will be deleted at the end of the grace window; resubscribe to keep it.",
- "account.subscription_detail_free": "Upgrade to Pro for cloud storage, cross-device sync, and voice input.",
+ "account.subscription_detail_free": "Upgrade to Pro for cloud storage and cross-device sync.",
"account.subscription_detail_coming_soon": "We're opening the billing channel — stay tuned.",
"account.subscription_action_subscribe": "Subscribe",
"account.subscription_action_manage": "Manage subscription",
@@ -38,9 +38,8 @@
"account.subscription_warning_grace": "Cloud data will be deleted on {date}. Resubscribe to keep it.",
"account.subscription_open_failed": "Couldn't open the management page; check your network and retry.",
"account.pro_required_title": "Pro feature",
- "account.pro_required_voice": "Voice input is a Pro feature. Subscribe to dictate directly into the composer with auto-transcription.",
"account.pro_required_sync": "Cloud sync is a Pro feature. Subscribe to keep tasks, agents, skills and Library in sync across devices.",
- "account.pro_required_generic": "This is a Pro feature. Subscribe to unlock cloud storage, cross-device sync, and voice input.",
+ "account.pro_required_generic": "This is a Pro feature. Subscribe to unlock cloud storage and cross-device sync.",
"account.pro_required_action": "Subscribe now",
"account.pro_required_cancel": "Later",
"common.ok": "OK",
@@ -177,11 +176,6 @@
"chat.recipient_commander_hint": "Default recipient, no @ needed",
"chat.recipient_picker_title": "Choose agent, skill, or connector",
"chat.attach_title": "Upload attachment (text / PDF / Word / image / video)",
- "chat.mic_title": "Voice input",
- "chat.mic_stop_title": "Stop recording",
- "chat.mic_error_permission": "Microphone access was blocked. Allow it in your system settings to use voice input.",
- "chat.mic_error_unavailable": "Voice input is unavailable right now.",
- "chat.mic_login_required": "Sign in to use voice input.",
"chat.chip_remove_title": "Remove",
"chat.send_title": "Send",
"chat.attach_uploading": "Uploading",
diff --git a/src/renderer/locales/ja.json b/src/renderer/locales/ja.json
index fd0ab9c6..785ef61c 100644
--- a/src/renderer/locales/ja.json
+++ b/src/renderer/locales/ja.json
@@ -22,11 +22,11 @@
"account.subscription_status_expired": "サブスクリプション終了",
"account.subscription_status_free": "無料プラン",
"account.subscription_status_coming_soon": "Pro は近日公開",
- "account.subscription_detail_active": "クラウドストレージ、デバイス間同期、音声入力をご利用いただけます。",
+ "account.subscription_detail_active": "クラウドストレージとデバイス間同期をご利用いただけます。",
"account.subscription_detail_will_cancel": "期間終了までは Pro を利用できます。その後は無料プランに戻ります。",
"account.subscription_detail_past_due": "Pro を継続するには支払い方法を更新してください。",
"account.subscription_detail_grace": "猶予期間の終了時にクラウドデータが削除されます。保持するには再登録してください。",
- "account.subscription_detail_free": "クラウドストレージ、デバイス間同期、音声入力を使うには Pro にアップグレードしてください。",
+ "account.subscription_detail_free": "クラウドストレージとデバイス間同期を使うには Pro にアップグレードしてください。",
"account.subscription_detail_coming_soon": "課金チャネルを準備中です。しばらくお待ちください。",
"account.subscription_action_subscribe": "登録する",
"account.subscription_action_manage": "サブスクリプションを管理",
@@ -38,9 +38,8 @@
"account.subscription_warning_grace": "{date} にクラウドデータが削除されます。保持するには再登録してください。",
"account.subscription_open_failed": "管理ページを開けませんでした。ネットワークを確認して再試行してください。",
"account.pro_required_title": "Pro 機能",
- "account.pro_required_voice": "音声入力は Pro 機能です。登録するとコンポーザーへ直接音声入力し、自動文字起こしできます。",
"account.pro_required_sync": "クラウド同期は Pro 機能です。登録するとタスク、エージェント、スキル、ライブラリを複数デバイスで同期できます。",
- "account.pro_required_generic": "これは Pro 機能です。クラウドストレージ、デバイス間同期、音声入力を利用するには登録してください。",
+ "account.pro_required_generic": "これは Pro 機能です。クラウドストレージとデバイス間同期を利用するには登録してください。",
"account.pro_required_action": "今すぐ登録",
"account.pro_required_cancel": "あとで",
"common.ok": "OK",
@@ -167,11 +166,6 @@
"chat.recipient_commander_hint": "デフォルトの宛先です。@ は不要です",
"chat.recipient_picker_title": "エージェント、スキル、コネクターを選択",
"chat.attach_title": "添付ファイルをアップロード(テキスト / PDF / Word / 画像 / 動画)",
- "chat.mic_title": "音声入力",
- "chat.mic_stop_title": "録音を停止",
- "chat.mic_error_permission": "マイクへのアクセスがブロックされています。音声入力を使うにはシステム設定で許可してください。",
- "chat.mic_error_unavailable": "現在、音声入力は利用できません。",
- "chat.mic_login_required": "音声入力を使うにはサインインしてください。",
"chat.chip_remove_title": "削除",
"chat.send_title": "送信",
"chat.attach_uploading": "アップロード中",
diff --git a/src/renderer/locales/zh.json b/src/renderer/locales/zh.json
index c3d9d6f7..aa416925 100644
--- a/src/renderer/locales/zh.json
+++ b/src/renderer/locales/zh.json
@@ -22,11 +22,11 @@
"account.subscription_status_expired": "会员已结束",
"account.subscription_status_free": "免费用户",
"account.subscription_status_coming_soon": "Pro 即将上线",
- "account.subscription_detail_active": "云端存储、跨设备同步与语音输入已解锁。",
+ "account.subscription_detail_active": "云端存储与跨设备同步已解锁。",
"account.subscription_detail_will_cancel": "本期内仍可使用全部 Pro 功能;到期后切回免费。",
"account.subscription_detail_past_due": "请尽快更新支付方式以避免会员中断。",
"account.subscription_detail_grace": "云端数据将在保留期满后清理。续订即可恢复。",
- "account.subscription_detail_free": "升级到 Pro 即可使用云端存储、跨设备同步与语音输入。",
+ "account.subscription_detail_free": "升级到 Pro 即可使用云端存储与跨设备同步。",
"account.subscription_detail_coming_soon": "我们正在开放支付通道,敬请期待。",
"account.subscription_action_subscribe": "开通会员",
"account.subscription_action_manage": "管理订阅",
@@ -38,9 +38,8 @@
"account.subscription_warning_grace": "云端数据将于 {date} 清理,续订即可保留。",
"account.subscription_open_failed": "无法打开管理页,请检查网络后重试。",
"account.pro_required_title": "Pro 会员功能",
- "account.pro_required_voice": "语音输入是 Pro 会员功能。开通后即可在对话框直接说话,自动转写为文字。",
"account.pro_required_sync": "云端同步是 Pro 会员功能。开通后多台设备的任务、智能体、技能、资料库自动保持一致。",
- "account.pro_required_generic": "该功能是 Pro 会员专属。开通后即可使用云端存储、跨设备同步与语音输入。",
+ "account.pro_required_generic": "该功能是 Pro 会员专属。开通后即可使用云端存储与跨设备同步。",
"account.pro_required_action": "立即开通",
"account.pro_required_cancel": "稍后再说",
"common.ok": "确定",
@@ -177,11 +176,6 @@
"chat.recipient_commander_hint": "默认接收者,无需 @",
"chat.recipient_picker_title": "选择智能体、技能或连接器",
"chat.attach_title": "上传附件(文本/PDF/Word/图片/视频)",
- "chat.mic_title": "语音输入",
- "chat.mic_stop_title": "停止录音",
- "chat.mic_error_permission": "麦克风访问被拒绝。请在系统设置中允许后再使用语音输入。",
- "chat.mic_error_unavailable": "语音输入暂时不可用。",
- "chat.mic_login_required": "登录后才能使用语音输入。",
"chat.chip_remove_title": "移除",
"chat.send_title": "发送",
"chat.attach_uploading": "上传中",
diff --git a/src/renderer/modules/auto.js b/src/renderer/modules/auto.js
index 68672099..4905ebe6 100644
--- a/src/renderer/modules/auto.js
+++ b/src/renderer/modules/auto.js
@@ -722,18 +722,6 @@ function _mountAutoForm() {
attachBtn.addEventListener('click', () => _autoPickAndUploadFiles());
}
- // Voice-to-text mic. The button is gated by the (stripped in OrkasOpen)
- // voice-input module; `attach` is a no-op when window.VoiceInput is absent.
- const micBtn = document.getElementById('auto-mic-btn');
- const ta = document.getElementById('auto-task-input');
- if (micBtn && ta && typeof window.VoiceInput === 'object' && typeof window.VoiceInput.attach === 'function') {
- window.VoiceInput.attach(micBtn, ta);
- } else if (micBtn) {
- // OrkasOpen strip: hide the button rather than leave a non-functional
- // affordance on the bar.
- micBtn.style.display = 'none';
- }
-
// Keep i18n labels updating on lang switch.
window.addEventListener('i18n-change', _autoRepaintLabels);
diff --git a/src/renderer/style.css b/src/renderer/style.css
index 4412902b..439bc9e3 100644
--- a/src/renderer/style.css
+++ b/src/renderer/style.css
@@ -29,7 +29,7 @@
}
/* Canonical motion keyframes per PC/docs/design/TOKENS.md §6. Pre-existing
- feature-scoped keyframes (chat-mic-pulse / ctx-kb-spin / …) keep their
+ feature-scoped keyframes (ctx-kb-spin / …) keep their
names — new UI code references these short names. */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.8); } }
@@ -4700,9 +4700,8 @@ body.model-not-configured .main-content { flex-direction: column; }
text-overflow: ellipsis;
}
-/* "+" / mic / icon-only buttons inside the composer bottom bar. Box matches
- PC/docs/design/PATTERNS.md P11 (30×30, radius 7). Both buttons share this
- the send button to the right edge of the bar. */
+/* "+" / icon-only buttons inside the composer bottom bar. Box matches
+ PC/docs/design/PATTERNS.md P11 (30×30, radius 7). */
.chat-attach-btn {
flex-shrink: 0;
width: 30px;
@@ -4733,23 +4732,8 @@ body.model-not-configured .main-content { flex-direction: column; }
background: var(--border);
}
-/* Mic floats to the right edge — sits immediately left of the send button.
- The whole "spacer" role is handled by margin-left:auto on this one element. */
-
-/* Mic button — voice-to-text. Reuses .chat-attach-btn's box; adds the
- recording / finalizing states. Stripped in OrkasOpen — see
- OpenSource/SyncCode/strip-rules.json. */
-.chat-mic-icon {
- width: 15px;
- height: 15px;
-}
-@keyframes chat-mic-pulse {
- 0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.28); }
- 60% { box-shadow: 0 0 0 5px rgba(220, 38, 38, 0); }
-}
-
-/* Bottom row inside the input area, ordered per PC/docs/design/PATTERNS.md P11:
- [+] | divider | [To] [workspace] [skill] [...] | spacer | [mic] [send].
+/* Bottom row inside the input area:
+ [+] | divider | [To] [workspace] [skill] [...] | spacer | [send].
Wraps row-by-row on narrow windows so chips never overflow the input box. */
.chat-bottom-bar {
display: flex;
@@ -4760,8 +4744,6 @@ body.model-not-configured .main-content { flex-direction: column; }
width: 100%;
padding: 4px 4px 4px;
}
- When the mic IS present (full build), it carries the spacer role and the
- send button sits flush next to it (gap:6px only). */
.chat-bottom-bar .chat-send-btn {
margin-left: auto;
}