fix: keep workspace metadata compact in timestamped releases

This commit is contained in:
Agent Workbench Dev
2026-10-30 00:22:05 +08:00
parent 4c8321a2ee
commit 4117e9e4ea
11 changed files with 38 additions and 12 deletions
+1 -1
View File
@@ -218,7 +218,7 @@ export class WorkspaceManager {
const slug = label.trim().toLowerCase().replace(/[^a-z0-9]+/g, '-').replace(/^-+|-+$/g, '').slice(0, 32) || 'task';
const record = { schemaVersion: 1, id, projectId: session.projectId, sessionId: session.id,
taskId: session.taskId ?? null, runId: session.runId ?? null, label: label.trim(), source,
root: path.join(this.outputRoot, 'w-' + id), branch: 'workbench/' + slug + '-' + id.slice(0, 12),
root: path.join(this.outputRoot, 'w-' + hash(id).slice(0, 20)), branch: 'workbench/' + slug + '-' + id.slice(0, 12),
childProjectId: randomUUID(), childSessionId: randomUUID(), createdAt: at(), updatedAt: at(), finishedAt: null,
status: 'prepared', phase: 'prepared', creationAttempted: false, requiresVerification: false, ownerPid: null, gitPid: null,
sourcePreserved: null, observation: null, summary: '已封存来源提交和原工作区状态,确认后创建独立Git工作区。' };