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.

Add "New conversation" entry as the first item in the project ⋯ menu

wyt2936eab6d89f
diff --git a/src/renderer/locales/en.json b/src/renderer/locales/en.json
index 0c249a82..2898ea44 100644
--- a/src/renderer/locales/en.json
+++ b/src/renderer/locales/en.json
@@ -29,7 +29,7 @@
"sidebar.conv_empty": "No conversations yet",
"sidebar.projects": "Projects",
"sidebar.project_create_title": "New project",
- "sidebar.project_create_placeholder": "Enter project name…",
+ "sidebar.project_create_placeholder": "Enter project name",
"sidebar.project_conv_empty": "(no conversations)",
"sidebar.settings": "Settings",
"sidebar.settings_title": "Settings",
@@ -561,6 +561,7 @@
"workspace.scope_project": "Project \"{name}\" workspace",
"workspace.scope_project_generic": "Project workspace",
"project.menu.more_actions": "More actions",
+ "project.menu.new_conv": "New conversation",
"project.menu.rename": "Rename",
"project.menu.delete": "Delete",
"project.name_dup_inline": "A project with this name already exists",
diff --git a/src/renderer/locales/zh.json b/src/renderer/locales/zh.json
index 7a99fb56..6a0e3cbf 100644
--- a/src/renderer/locales/zh.json
+++ b/src/renderer/locales/zh.json
@@ -29,7 +29,7 @@
"sidebar.conv_empty": "暂无对话",
"sidebar.projects": "项目",
"sidebar.project_create_title": "新建项目",
- "sidebar.project_create_placeholder": "输入项目名称…",
+ "sidebar.project_create_placeholder": "输入项目名",
"sidebar.project_conv_empty": "(暂无对话)",
"sidebar.settings": "设置",
"sidebar.settings_title": "设置",
@@ -561,6 +561,7 @@
"workspace.scope_project": "项目「{name}」工作区",
"workspace.scope_project_generic": "项目工作区",
"project.menu.more_actions": "更多操作",
+ "project.menu.new_conv": "新对话",
"project.menu.rename": "重命名",
"project.menu.delete": "删除",
"project.name_dup_inline": "已有同名项目,换一个吧",
diff --git a/src/renderer/modules/projects.js b/src/renderer/modules/projects.js
index ad72d39a..9057c1b1 100644
--- a/src/renderer/modules/projects.js
+++ b/src/renderer/modules/projects.js
@@ -412,6 +412,7 @@ function _openProjectRowMenu(anchorBtn, pid) {
_closeProjectRowMenu();
const items = [
+ { action: 'new_conv', label: t('project.menu.new_conv') },
{ action: 'rename', label: t('project.menu.rename') },
{ action: 'delete', label: t('project.menu.delete'), danger: true },
];
@@ -462,10 +463,20 @@ function _closeProjectRowMenu() {
}
async function _runProjectMenuAction(action, pid) {
+ if (action === 'new_conv') return _newConvWithProject(pid);
if (action === 'rename') return _startProjectInlineRename(pid);
if (action === 'delete') return _confirmDeleteProject(pid);
}
+// Pin pid into the commander chip's localStorage key BEFORE switching view —
+// onEnterCommanderProjectChip (fired from boot.js view-change) reads the same
+// key and re-validates against _projectsCache, so by the time the new-chat
+// panel mounts the chip is already showing this project.
+function _newConvWithProject(pid) {
+ try { localStorage.setItem(_COMMANDER_LAST_PROJECT_KEY, pid); } catch (_) {}
+ setView('new-chat');
+}
+
// ── Delete flow ─────────────────────────────────────────────────────────
async function _confirmDeleteProject(pid) {