fix(athena): improve error extraction in council orchestrator

Replace String(result.reason) with proper instanceof Error check to produce clean error messages instead of [object Error] or full stack traces.

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
ismeth
2026-02-18 20:55:35 +01:00
committed by YeonGyu-Kim
parent 750db54468
commit 4da77be93f

View File

@@ -46,7 +46,7 @@ export async function executeCouncil(input: CouncilExecutionInput): Promise<Coun
failures.push({
member,
error: `Launch failed: ${String(result.reason)}`,
error: `Launch failed: ${result.reason instanceof Error ? result.reason.message : String(result.reason)}`,
})
})