Commit Graph

4 Commits

Author SHA1 Message Date
Lucas Berger adbd7bd87d fix(batch): resolve container IDs in sub-workflows
When batch operations are triggered via keyboard callbacks, the main
workflow only passes container names (not IDs). The sub-workflows now:
- Check if containerId is empty
- If empty, query Docker API to resolve name → ID
- Then proceed with the action

This fixes batch start/stop/restart/update operations failing with
404 "page not found" errors.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-04 16:19:33 -05:00
Lucas Berger 6ef2736cff fix(10-03): fix success detection for container actions
Docker API returns 204 No Content on success (empty response body).
Changed from checking statusCode (not available in n8n httpRequest)
to checking for absence of error/message in response body.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-04 13:37:03 -05:00
Lucas Berger 5337e17f21 fix(10): use resource locator format for Execute Workflow nodes
n8n typeVersion 1.2 requires workflowId as resource locator object:
  { "__rl": true, "mode": "list", "value": "<id>" }
not a plain string. This was causing "workflow not found" errors.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-04 13:33:51 -05:00
Lucas Berger 35705a7707 feat(10-03): create container actions sub-workflow
- Add n8n-container-actions.json with executeWorkflowTrigger
- Input contract: containerId, containerName, action, chatId, messageId, responseMode
- Routes to start/stop/restart via Switch node
- Returns: success, message, action, containerName for caller to handle response
2026-02-04 13:06:38 -05:00