Skip to content

fix(compose): forward HERE_NOW into agent containers - #110

Merged
cryptolir merged 1 commit into
mainfrom
fix/compose-forward-here-now
Jul 29, 2026
Merged

cryptolir merged 1 commit into
mainfrom
fix/compose-forward-here-now

Conversation

@cryptolir

Copy link
Copy Markdown
Owner

Symptom

Agent projectmanager has the HERE_NOW key saved in the dashboard and the herenowPublishing skill installed, but reports:

no HERE_NOW, HERE_NOW_API_KEY, or here_now env var is present … it hasn't been injected into this running session.

Root cause — the documented allowlist rule, missed for this key

Verified on the US host:

  • docker.env has the key: HERE_NOW=<64 chars> (projectmanager + raingame) — the dashboard saved it correctly.
  • The container does not see it: docker exec … env | grep HERE_NOW → nothing.
  • docker-compose.yml has no env_file, so per-agent docker.env keys reach the container only when listed under environment: — exactly what the GMAIL_/GCAL_ comments say (fix(compose): forward GMAIL_* and GCAL_* into the gateway container #109). HERE_NOW was never added.

Same bug class as #109 (GMAIL_) and #23 (AGENTGLOB_RUNTIME_).

Fix

HERE_NOW: ${HERE_NOW:-} in both service blocks (openclaw-gateway + openclaw-cli), with the :- default so agents without the key are unaffected.

Hosts additionally need this pulled/applied and the affected containers recreated (done separately — both hosts are currently behind main with a hand-patched compose).

@codex review

🤖 Generated with Claude Code

This compose has no env_file, so a key written to a per-agent
docker.env reaches the container ONLY if it is listed in the
environment: block — the same rule already documented for the
GMAIL_*/GCAL_* keys.

HERE_NOW is a dashboard core API key (lib/agent-constants.ts) and the
herenowPublishing skill needs it, but it was never allowlisted: agents
with the key saved (projectmanager, raingame) see NO HERE_NOW in their
runtime env and report the skill as unusable. Added to both service
blocks (gateway + cli) with the :- default so agents without the key
are unaffected.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Can't wait for the next one!

Reviewed commit: e1b119c824

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@cryptolir
cryptolir merged commit eb94c14 into main Jul 29, 2026
18 of 24 checks passed
@cryptolir
cryptolir deleted the fix/compose-forward-here-now branch July 29, 2026 21:06
cryptolir added a commit that referenced this pull request Aug 3, 2026
…111)

This compose has no env_file — a key written to a per-agent docker.env
reaches the container only if allowlisted in the environment block (the
GMAIL_*/GCAL_*/HERE_NOW pattern, see #110). The plusim-reports skill
declares requires.env [PLUSIM_RUNTIME_URL, PLUSIM_RUNTIME_TOKEN], and the
operator writes both into onlyclaw's docker.env — but without this
allowlist entry the container never saw them, the skill's scripts could
not authenticate, and every Plusim job 401'd at the manifest fetch.

Verified on 1stClaw: with these two lines the container carries both
vars and a bearer-authenticated manifest request passes the token gate.

Co-authored-by: Liran Peretz <[email protected]>
Co-authored-by: Claude Opus 5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant