{"record":{"id":"056ac660f72d8cea","repo":"BloopAI/vibe-kanban","slug":"no-archive-script-configured-for-this-project","errorCode":null,"errorMessage":"No archive script configured for this project","messagePattern":"No archive script configured for this project","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"warning","filePath":"packages/web-core/src/shared/actions/index.ts","lineNumber":1211,"sourceCode":"        }\n        throw new Error('Failed to run cleanup script');\n      }\n    },\n  },\n\n  RunArchiveScript: {\n    id: 'run-archive-script',\n    label: 'Run Archive Script',\n    icon: TerminalIcon,\n    shortcut: 'R A',\n    requiresTarget: ActionTargetType.WORKSPACE,\n    isVisible: (ctx) => ctx.hasWorkspace,\n    isEnabled: (ctx) => !ctx.isAttemptRunning,\n    execute: async (_ctx, workspaceId) => {\n      const result = await workspacesApi.runArchiveScript(workspaceId);\n      if (!result.success) {\n        if (result.error?.type === 'no_script_configured') {\n          throw new Error('No archive script configured for this project');\n        }\n        if (result.error?.type === 'process_already_running') {\n          throw new Error('Cannot run script while another process is running');\n        }\n        throw new Error('Failed to run archive script');\n      }\n    },\n  } satisfies WorkspaceActionDefinition,\n\n  // === Issue Actions ===\n  CreateIssue: {\n    id: 'create-issue',\n    label: 'Create Issue',\n    icon: PlusIcon,\n    shortcut: 'I C',\n    requiresTarget: ActionTargetType.NONE,\n    isVisible: (ctx) => ctx.layoutMode === 'kanban' && !ctx.isCreatingIssue,\n    execute: (ctx) => {","sourceCodeStart":1193,"sourceCodeEnd":1229,"githubUrl":"https://github.com/BloopAI/vibe-kanban/blob/4deb7eca8f381f7cbc1f9d15515a9ab8f8009053/packages/web-core/src/shared/actions/index.ts#L1193-L1229","documentation":"Thrown by the RunArchiveScript action when workspacesApi.runArchiveScript returns success:false with error.type === 'no_script_configured'. The project has no archive script registered, so the backend refuses to start one.","triggerScenarios":"Executing RunArchiveScript on a workspace whose project defines no archive script (archive_script null/empty), yielding the structured { success: false, error: { type: 'no_script_configured' } } response.","commonSituations":"Projects that never configured archive automation, users assuming archiving runs a default script, or configs predating the archive-script feature.","solutions":["Add an archive script to the project configuration.","Hide/disable the RunArchiveScript action when no archive script is configured.","Verify the correct project/workspace is being targeted.","Refresh project data after editing the script configuration."],"exampleFix":"// before\nisVisible: (ctx) => ctx.hasWorkspace,\n// after\nisVisible: (ctx) => ctx.hasWorkspace && ctx.hasArchiveScript,","handlingStrategy":"validation","validationCode":"// before running\nconst ctx = getWorkspaceContext(workspaceId);\nif (!ctx.hasWorkspace) return;\nif (!ctx.project.archiveScript) {\n  toast.info('No archive script configured for this project');\n  return;\n}\nawait workspacesApi.runArchiveScript(workspaceId);","typeGuard":"function isNoScriptError(result: RunScriptResult): boolean {\n  return result.success === false && result.error?.type === 'no_script_configured';\n}","tryCatchPattern":"try {\n  const result = await workspacesApi.runArchiveScript(workspaceId);\n  if (!result.success && result.error?.type === 'no_script_configured') {\n    toast.info('Add an archive script in project settings first.');\n    return;\n  }\n  if (!result.success) throw new Error(result.error?.message ?? 'Failed to run archive script');\n} catch (err) {\n  toast.error(String(err));\n}","preventionTips":["Configure an archive script before using the archive action.","Conditionally render the archive action based on project script config.","Use error.type for control flow, not message strings.","Refresh project configuration after editing scripts."],"tags":["configuration","script","workspace"],"backgroundTag":"missing-script-configuration","analyzedSha":"4deb7eca8f381f7cbc1f9d15515a9ab8f8009053","analyzedAt":"2026-08-29T09:24:13.446Z","schemaVersion":2},"datasetVersion":"2026-08-29T12:17:43.993Z"}