Skip to content

When running Shannon via npx @keygraph/shannon start, the CLI consistently times out with "Timeout waiting for workflow to start" before the worker container can register with Temporal and begin processing. #281

@premkumar-sudo

Description

@premkumar-sudo

Describe the bug

When running Shannon via npx @keygraph/shannon start, the CLI consistently times out with "Timeout waiting for workflow to start" before the worker container can register with Temporal and begin processing.
Environment

  • OS: Ubuntu 24.04 LTS (GCP VM, e2-standard-8)
  • Docker: 27.x
  • Node.js: v20.20.2
  • Shannon: v1.0.0 (via npx)
  • Provider: Google Vertex AI (us-east5)

Steps to reproduce

1.npx @keygraph/shannon setup (configure Vertex AI)
2. npx @keygraph/shannon start -u <url> -r <repo> -c <config>
3. CLI shows banner, then "Waiting for workflow to start..." with dots
4. After ~60s, "Timeout waiting for workflow to start"

Image

Expected behaviour

Worker should start and workflow should begin processing.

Actual behaviour

The CLI times out, but running the worker container manually with docker run using the same config works perfectly — preflight passes, pre-recon agent launches, and Claude starts analyzing.

Pre-submission checklist (required)

  • I have searched the existing open issues and confirmed this bug has not already been reported.
  • I am running the latest released version of shannon.

If applicable

  • I have included relevant error messages, stack traces, or failure details.
  • I have checked the workspaces folder for logs and pasted the relevant errors.
  • I have inspected the failed Temporal workflow run and included the failure reason.
  • I have included clear steps to reproduce the issue.
  • I have redacted any sensitive information (tokens, URLs, repo names).

Debugging details

Running the worker container manually works:

docker run --rm --network shannon-net \
  -e TEMPORAL_ADDRESS=shannon-temporal:7233 \
  -e CLAUDE_CODE_USE_VERTEX=1 \
  ... \
  keygraph/shannon:1.0.0 \
  node apps/worker/dist/temporal/worker.js   \
  --task-queue shannon-pentest --config 

Screenshots

No response

CLI mode

npx (@keygraph/shannon)

Provider

Google Vertex AI

Full command with all flags used (with redactions)

npx @keygraph/shannon start -u https://example.com/ -r ~/repo-of-my-app -c ~/congif-file.yaml

OS (with version)

Ubuntu 24.04 LTS (GCP VM, e2-standard-8)

Node.js version ('node -v')

v20.20.2

Docker version ('docker -v')

27.x

Additional context

  • The worker container spawned by the CLI (spawnWorker in index.mjs) uses --rm and stdio: "pipe", making it impossible to capture logs after timeout.
  • The timeout seems hardcoded and may be too short for the Vertex AI initialization + workflow bundling (~15-20s).
  • Tested on both a manually cloned repo (./shannon start) and npx — same behavior.
  • Works fine on macOS with OrbStack.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions