Skip to content

Commit ee66082

Browse files
authored
feat: acp init and process manage (#1171)
* feat: init acp process on select * feat: warm up acp process on new thread * fix: reuse warmup process * fix: vue warning * chore: add plan for acp debug panel * feat: add debugview for acp * feat: add i18n for debug * fix: code review * fix: ai review * fix: Shutdown may skip releasing warmup‑only processes due to using warmupKey instead of agentId. * chore: update markdown renderer
1 parent 391eb2e commit ee66082

33 files changed

Lines changed: 2207 additions & 83 deletions

.vscode/settings.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
{
2-
"i18n-ally.localesPaths": ["src/renderer/src/i18n"],
2+
"i18n-ally.localesPaths": [
3+
"src/renderer/src/i18n"
4+
],
35
"i18n-ally.keystyle": "nested",
46
"i18n-ally.sourceLanguage": "zh-CN",
57
"i18n-ally.namespace": true,

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@
147147
"katex": "^0.16.25",
148148
"lint-staged": "^16.2.6",
149149
"lucide-vue-next": "^0.544.0",
150-
"markstream-vue": "0.0.2",
150+
"markstream-vue": "0.0.3-beta.2",
151151
"mermaid": "^11.12.1",
152152
"minimatch": "^10.1.1",
153153
"monaco-editor": "^0.52.2",

src/main/events.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,3 +240,7 @@ export const ACP_WORKSPACE_EVENTS = {
240240
FILES_CHANGED: 'acp-workspace:files-changed', // File tree changed
241241
SESSION_MODES_READY: 'acp-workspace:session-modes-ready' // Session modes available
242242
}
243+
244+
export const ACP_DEBUG_EVENTS = {
245+
EVENT: 'acp-debug:event'
246+
}

src/main/presenter/llmProviderPresenter/agent/acpContentMapper.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,13 @@ export class AcpContentMapper {
128128
payload.events.push(createStreamEvent.text(text))
129129
payload.blocks.push(this.createBlock('content', text))
130130
} else {
131+
const timestamp = now()
131132
payload.events.push(createStreamEvent.reasoning(text))
132-
payload.blocks.push(this.createBlock('reasoning_content', text))
133+
payload.blocks.push(
134+
this.createBlock('reasoning_content', text, {
135+
reasoning_time: { start: timestamp, end: timestamp }
136+
})
137+
)
133138
}
134139
}
135140

0 commit comments

Comments
 (0)