docs: clarify --message flag on restart for config help
Explain that --message sets an on-wake instruction so the fresh container can continue after restart (verify tools, notify user). Without it, the container only comes back on the next user message. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -63,8 +63,10 @@ registerResource({
|
|||||||
description:
|
description:
|
||||||
'Restart containers for a group. Use --id <group-id> [--rebuild] [--message <text>]. ' +
|
'Restart containers for a group. Use --id <group-id> [--rebuild] [--message <text>]. ' +
|
||||||
'From inside a container, --id is auto-filled and only the calling session is restarted. ' +
|
'From inside a container, --id is auto-filled and only the calling session is restarted. ' +
|
||||||
'--rebuild rebuilds the container image first. --message sets an on-wake message for the fresh container; ' +
|
'--rebuild rebuilds the container image first (required for package changes). ' +
|
||||||
'if omitted, containers come back on the next user message.',
|
'--message sets an on-wake instruction for the fresh container to act on when it starts — ' +
|
||||||
|
'use this when you need to continue after the restart (e.g. verify a new tool works, notify the user). ' +
|
||||||
|
'Without --message, the container is killed and only comes back on the next user message.',
|
||||||
handler: async (args, ctx) => {
|
handler: async (args, ctx) => {
|
||||||
const id = (args.id as string) || (ctx.caller === 'agent' ? ctx.agentGroupId : undefined);
|
const id = (args.id as string) || (ctx.caller === 'agent' ? ctx.agentGroupId : undefined);
|
||||||
if (!id) throw new Error('--id is required');
|
if (!id) throw new Error('--id is required');
|
||||||
|
|||||||
Reference in New Issue
Block a user