feat(coding): add core host api composition
This commit is contained in:
@@ -114,7 +114,9 @@ export class PiSessionRegistry {
|
||||
if (!project) throw new Error('Coding project does not exist');
|
||||
const configRead = await readCodingProjectConfigV2(project.path);
|
||||
if (configRead.status !== 'valid') throw new Error('Coding project configuration is unavailable');
|
||||
const agent = configRead.config.agents.find((candidate) => candidate.id === input.agentId);
|
||||
const agent = configRead.config.agents.find((candidate) => (
|
||||
candidate.id === input.agentId && candidate.enabled && !candidate.archivedAt
|
||||
));
|
||||
if (!agent) throw new Error('Coding Agent does not exist');
|
||||
const store = createCodingConversationStore(project.path);
|
||||
const conversation = await store.get(input.conversationId);
|
||||
|
||||
Reference in New Issue
Block a user