Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions container/agent-runner/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ async function main(): Promise<void> {
for await (const message of query({
prompt,
options: {
maxTurns: 10, // Prevent runaway loops (see issue #30)
cwd: '/workspace/group',
resume: input.sessionId,
allowedTools: [
Expand Down
6 changes: 4 additions & 2 deletions container/agent-runner/src/ipc-mcp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,14 @@ export function createIpcMcp(ctx: IpcMcpContext) {
timestamp: new Date().toISOString()
};

const filename = writeIpcFile(MESSAGES_DIR, data);
writeIpcFile(MESSAGES_DIR, data);

// Return clear success signal to prevent agent from retrying
const preview = args.text.length > 80 ? args.text.slice(0, 80) + '...' : args.text;
return {
content: [{
type: 'text',
text: `Message queued for delivery (${filename})`
text: `Message sent successfully. The user will receive: "${preview}"`
}]
};
}
Expand Down