feat: unify execution and add workspace file imports

Remove Ask/Execute modes and general product tool approvals so requests use the selected runtime, enabled capabilities, and execution account permissions. Migrate retired application metadata while preserving user content.

Retire the Results page while retaining conversation images and stored artifacts. Add local and remote workspace file imports, timestamps and sorting, improve image discovery and saving, and refine workspace navigation and supervision responsiveness. Include the accompanying web-search changes, tests, probes, and product documentation.

Remote imports require an updated Agent. Existing artifacts are not automatically copied into project directories. Validation evidence and outstanding failures remain documented in feature progress files; no full test suite or real-model calls were rerun for this commit.

Release note: Run requests without switching work modes, import files into a selected local or remote workspace folder, sort workspace files by date, and keep using conversation images after removal of the Results page.
This commit is contained in:
mesalogo
2026-10-04 20:02:59 +08:00
parent 0cd5da33f4
commit 56ebd40bd8
374 changed files with 7075 additions and 6224 deletions
+7 -4
View File
@@ -5,10 +5,10 @@ import { rgPath } from '@vscode/ripgrep'
import { expect, it } from 'vitest'
import { ModelToolProvider, type ModelToolResult } from './model-tool-provider'
it('pages native rg output through the production provider in Ask and releases it', async () => {
it('pages native rg output through the production provider and releases it', async () => {
const root = await mkdtemp(join(tmpdir(), 'goodbuddy-rg-provider-'))
const provider = new ModelToolProvider(root, [], undefined, undefined, false, { ripgrepExecutablePath: rgPath })
const context = { conversationId: 'rg-pages', runtimeTarget: 'model' as const, workMode: 'ask' as const }
const context = { conversationId: 'rg-pages', runtimeTarget: 'model' as const, }
const signal = new AbortController().signal
const parse = (result: ModelToolResult) => {
expect(result.contextBytes).toBeLessThanOrEqual(256 * 1024)
@@ -36,8 +36,11 @@ it('pages native rg output through the production provider in Ask and releases i
expect(output).toBe(text)
const error = parse(await provider.callTool('workspace_rg', { args: ['[', '.'] }, signal, context))
expect(error).toMatchObject({ exitCode: 2, stderr: expect.stringContaining('regex parse error') })
await expect(provider.callTool('workspace_rg', { args: ['--pre=cmd', 'target'] }, signal, context))
.rejects.toMatchObject({ name: 'RecoverableModelToolError' })
const preprocessed = parse(await provider.callTool('workspace_rg', {
args: ['--pre=goodbuddy-nonexistent-preprocessor', 'target', 'large.txt']
}, signal, context))
expect(preprocessed.exitCode).toBe(2)
expect(preprocessed.stderr).toContain('goodbuddy-nonexistent-preprocessor')
await provider.releaseConversation(context.conversationId)
await expect(provider.callTool('output_read', { handle: reference.handle }, signal, context)).rejects.toThrow('不存在')
} finally {