Skip to content

feat(bot): show the broker in the startup banner, drop the public key from workers - #395

Merged
RedStar071 merged 2 commits into
V7from
feat/worker-startup
Nov 10, 2026
Merged

RedStar071 merged 2 commits into
V7from
feat/worker-startup

Conversation

@RedStar071

@RedStar071 RedStar071 commented Nov 10, 2026 •

Copy link
Copy Markdown
Member

🔗 Linked issue

None.

❓ Type of change

  • 📖 Documentation
  • 🐞 Bug fix
  • 👌 Enhancement
  • ✨ New feature
  • 🧹 Chore
  • ⚠️ Breaking change

📚 Description

A worker (BOT_MODE=worker) printed the startup lines of the gateway turned off, and did not say which stream it reads or under which name. It also had to be given DISCORD_PUBLIC_KEY, though it serves no interactions.

The banner now has a Mode line and a Broker line. A worker shows its stream, consumer group and consumer, and leaves out the HTTP and API lines. The gateway says whether it forwards the dispatches. The lines come from formatStartupStatus in lib/utilities/startup.ts.

DISCORD_PUBLIC_KEY is required only with BOT_MODE=gateway. The framework refuses an empty key, so createClient() gives a worker a placeholder it never uses. A worker can also run without the HTTP_*, API_* and OAUTH_* variables, which already have defaults or are optional.

🤖 AI disclosure: Wolfstar Agent Kit modified this description. AI open source policy.


Read this PR faster

RetriggerView in GreptileConfidence Score: 5/5

The PR appears safe to merge; no actionable issues were found.

Reviews (2) · Last reviewed commit: "Merge branch 'V7' into feat/worker-start..." · Reviewed by Greptile

…k a worker for less

A worker no longer needs DISCORD_PUBLIC_KEY, and its banner shows the stream, group and consumer
instead of the HTTP server and API it never starts.
@coldtea-pr-lens

coldtea-pr-lens Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
  • Redraw · drawn at b9c249c, the branch has moved on

Architecture

Walkthrough of Worker configuration and startup status, in three steps

Read this PR faster


Data flow

No data-flow sequence changed in this PR.


Review

✨ Nothing flagged · reviewed b9c249c


Tip

Set github.description: false in .github/pr-lens.yml to stop PR Lens adding buttons to your PR descriptions

🪧 More tips
  • Run npx skills add coldteadotai/pr-lens, then tell your coding agent: "Diagram the change you just made with PR Lens and attach it to the pull request."
  • Run npx @coldtea/pr-lens-cli analyze --base origin/main on a branch, then npx @coldtea/pr-lens-cli render .pr-lens/graph.json. Same lenses, your own model key, before the pull request exists
  • Click the link under each diagram to open it on a canvas you can zoom, pan and step through
  • The diagrams are links. Click one to open it on the canvas, then press W or click play to walk through the change
  • Open a diagram on the canvas, then press W or click play to walk through the change one step at a time
  • The CLI's render reads .github/pr-lens.yml and applies your renames, exclusions and lane pins at draw time
  • Set github.comment.collapsed: true in .github/pr-lens.yml to fold the comment behind one View architecture… row. Drawing still runs as before
  • Set github.draw: on-demand in .github/pr-lens.yml and PR Lens stops drawing pull requests on its own. Comment @pr-lens draw on a pull request when you want that one drawn
  • Add .github/workflows/pr-lens.yml with coldteadotai/pr-lens/packages/action@v0 and your model provider's key as its api-key to run PR Lens from your own CI. Any /chat/completions endpoint works
  • After a push, tick Redraw to draw the latest commit
  • Switch GitHub to dark mode and the diagrams follow. The moving dots are this pull request's data in motion

Thanks for using PR Lens! It's free for OSS. If it helped, a star helps other teams find it.  Star PR Lens on GitHub

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found.

Reviewed changes: the single commit on feat/worker-startup, read end to end against the base.

  • Startup banner: formatStartupStatus in lib/utilities/startup.ts builds the status lines as a pure function. A worker shows Mode and Broker (stream, group, consumer) and omits HTTP and API, and the gateway shows whether it forwards dispatches. main.ts gathers the inputs in readStartupStatus(), and its fallbacks (wolfstar:events, workers, worker-1, 127.0.0.1:3000, 127.0.0.1:8282) match the defaults in .env.schema.
  • DISCORD_PUBLIC_KEY only for the gateway: the schema requirement is now and(forEnv(development, production), eq($BOT_MODE, gateway)), and createClient() passes a placeholder when isWorker(). The other reader of the key, sharder/manager.ts, is unreachable from a worker because isShardManager() includes !isWorker().
  • Tests and docs: startup.test.ts covers the gateway (broker on and off, API off) and the worker, and AGENTS.md is updated to match.

Pullfrog  | View workflow run | Using claude-sonnet-5-5 | 𝕏

@github-project-automation github-project-automation Bot moved this from Todo to Review Approved in Wolfstar Nov 10, 2026
@RedStar071
RedStar071 merged commit ca730fe into V7 Nov 10, 2026
8 checks passed
@RedStar071
RedStar071 deleted the feat/worker-startup branch November 10, 2026 19:15
@github-project-automation github-project-automation Bot moved this from Review Approved to Done in Wolfstar Nov 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants