fix(gsd): log error instead of empty catch in skip_slice
This commit is contained in:
parent
824e8e12a8
commit
114bde1788
1 changed files with 3 additions and 1 deletions
|
|
@ -936,7 +936,9 @@ export function registerDbTools(pi: ExtensionAPI): void {
|
|||
const basePath = process.cwd();
|
||||
const { rebuildState } = await import("../doctor.js");
|
||||
await rebuildState(basePath);
|
||||
} catch { /* non-fatal — STATE.md staleness is better than crashing */ }
|
||||
} catch (err) {
|
||||
logError("tool", `skip_slice rebuildState failed: ${(err as Error).message}`, { tool: "gsd_skip_slice" });
|
||||
}
|
||||
|
||||
return {
|
||||
content: [{ type: "text" as const, text: `Skipped slice ${params.sliceId} (${params.milestoneId}). Reason: ${params.reason ?? "User-directed skip"}. Auto-mode will advance past this slice.` }],
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue