feat(session-ui): rewrite v2 prompt input (#37102)

This commit is contained in:
Brendan Allan
2026-07-17 18:02:19 +08:00
committed by GitHub
parent ed926be253
commit c0a258b22a
35 changed files with 3621 additions and 1095 deletions
@@ -22,5 +22,8 @@ export function useCommand() {
keybind(id: string) {
return keybinds[id]
},
keybindParts(id: string) {
return keybinds[id]?.split("+") ?? []
},
}
}
@@ -10,7 +10,7 @@ const dict: Record<string, string> = {
"prompt.loading": "Loading prompt...",
"prompt.placeholder.normal": "Ask anything...",
"prompt.placeholder.simple": "Ask anything...",
"prompt.placeholder.shell": "Run a shell command... {{example}}",
"prompt.placeholder.shell": "Enter shell command... {{example}}",
"prompt.placeholder.summarizeComment": "Summarize this comment",
"prompt.placeholder.summarizeComments": "Summarize these comments",
"prompt.action.attachFile": "Attach files",
@@ -12,6 +12,8 @@ const [data, setData] = createStore({
session_working: () => false,
agent: [{ name: "build", mode: "task", hidden: false }],
command: [{ name: "fix", description: "Run fix command", source: "project" }],
reference: [],
mcp_resource: {},
})
const sync = {