feat: improve desktop reliability and customization
Address reliability and consistency gaps across Agent Runtimes, persistence, settings, Knowledge, Magic Notes, Smart Heartbeat, and the download site. Runtime processes now have bounded lifecycle cleanup and atomic configuration rollback, while model packages and persisted mutations recover safely. Add a configurable global shortcut, protect unsaved work, improve modal and keyboard behavior, localize the built-in project without rewriting stored data, and lazy-load heavy renderer routes under enforced bundle budgets. Align project forms and disabled controls with shared typography and interaction states, and strengthen website release metadata validation and navigation accessibility. Release note: 修复 Runtime、设置、知识库、魔法笔记与智能心跳中的可靠性和交互一致性问题;新增可配置全局快捷键,改进无障碍与加载性能,并强化官网下载校验。
This commit is contained in:
@@ -83,6 +83,7 @@ describe('ContinueAgentRuntime', () => {
|
||||
text: 'Continue response'
|
||||
})
|
||||
mocks.respondHostQuestion.mockResolvedValue(undefined)
|
||||
mocks.disposeHost.mockResolvedValue(undefined)
|
||||
})
|
||||
|
||||
it('does not launch the CLI for an already-cancelled request', async () => {
|
||||
@@ -104,6 +105,29 @@ describe('ContinueAgentRuntime', () => {
|
||||
expect(mocks.runHost).not.toHaveBeenCalled()
|
||||
})
|
||||
|
||||
it('awaits host process cleanup during Runtime disposal', async () => {
|
||||
let releaseDispose!: () => void
|
||||
mocks.disposeHost.mockImplementation(
|
||||
() =>
|
||||
new Promise<void>((resolve) => {
|
||||
releaseDispose = resolve
|
||||
})
|
||||
)
|
||||
const runtime = createRuntime()
|
||||
await collectEvents(runtime)
|
||||
let disposed = false
|
||||
|
||||
const disposal = runtime.dispose().then(() => {
|
||||
disposed = true
|
||||
})
|
||||
await Promise.resolve()
|
||||
expect(disposed).toBe(false)
|
||||
|
||||
releaseDispose()
|
||||
await disposal
|
||||
expect(disposed).toBe(true)
|
||||
})
|
||||
|
||||
it('uses the resolved binary through the Continue host adapter', async () => {
|
||||
const runtime = createRuntime()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user