GeezerVison is showing github.com — OpenClaw secrets via sops-nix (bws mirror) by dezren39 · Pull Request #1242 · developing-today/code
Conversation
dezren39
commented
Oct 27, 2026
•
edited by blacksmith-sh
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
Prepares the sops-nix side of OpenClaw secret management, following the fleet pattern used by nixos/agent-auth:
- Re-syncs secrets/sops/common/bws.yaml with lib/bws-to-sops.sh (99 secrets; adds openclaw.gateway-token, openclaw.slack-bot-token, openclaw.slack-app-token; Bitwarden SM stays the source of truth).
- Adds nixos/hosts/amd-openclaw-secrets.nix (amd only): declares the three as sops.secrets with owner user, mode 0400, decrypting to /run/secrets/openclaw/* at system activation. Validated by evaluating config.sops.secrets paths.
Sequencing: merge after feat/openclaw-summarize. The secrets only materialize on a system activation (sudo nixos-rebuild switch). A tiny follow-up then points home/openclaw wrapper environment paths from ~/.secrets/openclaw/* to /run/secrets/openclaw/* — deliberately NOT in this PR, so the gateway never points at files that do not exist yet.
![Autofix with [code]smith](/api/image?u=https%3A%2F%2Fcamo.githubusercontent.com%2F33b6f70f3541c4e93f4503d29cbfec051fa1b040d8e0ae9313a51c4ece44a627%2F68747470733a2f2f70722d636f6d6d656e74732d6173736574732e626c61636b736d6974682e73682f636f6465736d6974682f6175746f6669782d776974682d636f6465736d6974682d6461726b2d33782e706e67)
Need help on this PR? Tag @codesmith-bot with what you need.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
playwright.config.ts starts one ephemeral server per browser project
for a whole invocation, so every spec file shared that server's
in-memory store: basic.spec's empty-state test ran after autosave.spec
had created files, search/list tests observed other specs' files, and
the collab/save cluster degraded as shared state grew (Firefox nightly
cluster, e.g. run 40239827303: 19 failed / 2 flaky / 110 passed, all
[firefox]).
Run Playwright once per spec file in the test-e2e nix check and in the
just test-e2e{,-chromium,-firefox} recipes, so each spec file gets a
fresh ephemeral server. The nix check runs all files even when one
fails and fails the check if any file failed. playwright.config.ts
documents that a single full-suite invocation has no per-spec
isolation.
This is the fallback design recorded on #229 (per-spec-file server
isolation); the preferred reset-endpoint design touches Rust product
code, which the queue packet scope excludes.
…spans (#968)
Adjacent ProseMirror runs are converted to comrak AST one at a time,
each in canonical rank order, so neighbours sharing a mark could
disagree about which shared mark is outermost: '*em **strong** end*'
arrived as Emph, Strong->Emph, Emph and rendered as three fragmented
sibling spans with   boundary entities.
append_inline_child now peels pure mark chains (wrapper -> ... ->
leaf, as create_marked_text builds them) and tail-inserts the leaf:
the parent's tail wrapper is reused for whichever chain mark it
carries, and the chain's remaining wrappers nest inside it. This
subsumes the #953 identical-wrapper merge and applies at all three
append sites (generic children, table cells, footnote definitions).
Tests: the 5 still-corrupt triage cases round-trip byte-identically
with a double round-trip fixpoint; the post-#999 clean set and
#944/#953 cases are pinned as regression guards. Verified via the
standalone codec crate (67/67 module tests pass); full lib-test
compile relies on PR CI per the sandbox OOM note.
Parse arm carries block children via collect_block_children; save
special case appends block children directly and groups legacy
inline children into one Paragraph; #945 parse-shape test updated;
three new regression tests.
State: web::markdown suite 67 passed / 3 failed — the three new/
updated footnote tests fail on the PM shape of a parsed definition:
definition content[0] has type footnote_definition where a paragraph
was expected. Resume: inspect the actual PM JSON for
'Text.[^1]\n\n[^1]: Body.\n' (creator probe crate in goal
hidden_files/probe-2026-10-26-1815 iterates in seconds) and fix the
shape assumption or the conversion, then re-run
cargo test --features web --lib web::markdown.
…e claims in 95f69f6
The '67 passed / 3 failed' result and the specific panic details
recorded in the WIP commit message, the task checkpoint, and the
parked agent note came from background exec deliveries that the
authoritative completion records contradict: the full-suite run
timed out at 1500s during compilation (compile output only, no test
results) and the filtered footnote run timed out at 600s with no
output at all. No test outcome was ever actually observed.
True state: implementation is as committed in 95f69f6; whether the
web::markdown tests pass is UNKNOWN. Resume: run
cargo test --features web --lib web::markdown with a generous
timeout (cold build alone exceeded 25 min here) and only then
believe a result that a synchronous call returns.
…comrak render style (task 1210)
The WIP save arm moved the arena Paragraph reference out of the
match arm after storing it (E0505) — reborrow as a shared reference.
The legacy flat-shape test asserted the same-line '[^1]: Body.'
rendering; comrak renders definitions with the paragraph on an
indented continuation line on the standard parse->save path too
(verified in the verbatim-codec probe crate), so the test now
asserts content preservation + fixpoint.
Verified: verbatim markdown.rs in the probe crate (comrak 0.56,
locked) — full web::markdown suite 68 passed / 0 failed, including
the two-paragraph fixpoint, code-block child, legacy flat shape,
and updated #945 parse-shape tests.
… lease expiry, preserved for resume
…int by save 2 (indent normalizes 2->4 spaces)
…lock, not fence spelling
comrak 0.56 renders an info-less code block inside a loose list item
as an indented code block, so the literal fence assertion failed
deterministically (verbatim-codec probe) even though the block
survives: reparse yields a code_block child, the two-save fixpoint
holds, and the trailing item is intact. Assert the acceptance
criterion (survives as a code block, not inlined) plus trailing-item
presence instead. Probe suite: 71 passed / 0 failed.
…#688)
The streaming half of #685's Content-Length fix had no regression
test: the stub never set Content-Length on SSE responses, so ablating
writeHead's streaming delete failed nothing (triage task 1067).
- Stub gains an 'ok-length-stream' mode: the SSE payload is served
with a Content-Length equal to the backend's own byte count, which
the proxy's per-chunk model rewrite makes stale.
- New test asserts the client receives the full rewritten stream
(incl. [DONE]) and that any advertised Content-Length matches the
bytes actually sent.
Verified: suite 7/7 on current code; with the streaming delete
ablated, exactly the new test fails (6 pass / 1 fail). Test-only —
no proxy change.
…ue-tracked
Reprioritization per Drew 2026-10-26: Phase 12 and the work needed to
get to Phase 12 (trusted CI, per-phase validation tasks #1075-#1078,
journal format, cost visibility) lead the roadmap. New issues #1061-#1069
complete the F12 set; #1070-#1073 track the long-term ideas. Removes
stale rows that claimed shipped F11 items (F11.5/F11.10/F11.13/F11.14)
were still planned. Grist seed gains the matching Area choice and rows.
…ng-content-length
test(design-code-proxy): streaming Content-Length regression test (#688)
…istorical note on torn-down test cluster
prosemirror_to_markdown placed any known PM node type anywhere, so a
misplaced node (text/image/hard_break at doc level, a block inside a
paragraph) built an ill-formed comrak AST: the formatter panics in
debug builds and silently emits invalid markdown in release builds.
Add a PM-level placement walk (validate_placement) ahead of
json_to_ast: doc and block containers take blocks only, paragraph /
heading take inline only, lists/tables enforce their item/row/cell
structure, code_block takes text only. Violations return the new
ConversionError::MisplacedNode { parent, child } — the save path
already propagates ConversionError as a save failure. Unknown types
still fall through to UnknownType; footnote definitions and table
cells accept both shapes they legitimately carry (#945 / unwrapping).
Tests: test_misplaced_nodes_return_error_not_panic covers the five
verified panic shapes plus blockquote, table, and task_list cases,
unknown-type precedence, and a well-formed control. Verified with the
verbatim-codec probe crate: suite 71/71, all five shapes now Err.
…2-first
docs(id): roadmap — Phase 12 + path to Phase 12 first
…seed
docs(planning): seed basement cluster roadmap + first status record
feat(opencode): add luna-haiku-100k pool capped below the 100k context cliff
Replace the 'Epics being filed' placeholders with the filed epic
issues (#1080, #1081, #1083-#1088, #1090-#1093) and move the
Now/Next rows from proposed to planned now that their issues exist.
…te-blocks
fix(id): carry block children on footnote_definition so multi-paragraph definitions stop fusing on save (#1031)
…epic-links
docs(basement-cluster): link filed epic issues in roadmap
… data, drop Luna from specialist and speed
feat(opencode): pool balance pass 3 — re-pin on TTFT data, drop Luna from specialist + speed
…1120, #1121)
Project registry (src/project-config.ts): one ProjectConfig per
project — id/title/intro, poolArea, roadmapArea, homeDoc,
dashboardLinks, trackedRefs, optional architecture + editorial —
with pure validateProjectConfigs (duplicate ids/areas, malformed
refs) asserted clean over the shipped registry in tests. The
pm-dashboard PROGRAM migrates into the registry as its entry (same
object references, no content loss); its designRecordUrl now points
at the real file (dir/same-named .md).
/program becomes the projects index: one card per project with LIVE
pool counts by status and roadmap row counts, the whole-pool summary
and orchestration freshness from #1046, and the unset-Area pool
count as a visible gap. /program/<id> renders per project: intro +
home-doc/dashboard links, tracked issues resolved live (unresolved
stays unresolved), its Area's pool items grouped by status, its
roadmap area's Grist rows, editorial done/next/long-term/gaps, and
honest gap banners for null poolArea/roadmapArea/homeDoc. JSON
twins: /api/program.json gains per-project summaries (existing pm
fields unchanged); new /api/program-project.json?id=<id> (404 JSON
for unknown id); unknown /program/<id> gets a clean not-found page.
Starter editorial for lab-cluster (project-structure spec seed:
12 epics with horizons, hard rules, nothing installed yet), id
(Phase 12 path from planning/roadmaps/id.md), repo-fleet (four
repos + #911), mcpx (planning/roadmaps/mcpx.md; tracked refs
verified open via gh), cloud-program (/quota hub + account
campaign; Plaid/Citi gap stated). Depth stays in #1124-#1128.
README: /program + /program/<id> views rows, the add-a-project
registry recipe, project-config.ts in the layout list (#1123 parts
that belong with this PR).
Also fixes a pre-existing-on-main test failure: render.test.ts
expected 16 Grist seed rows; the seed grew to 23 (verified failing
on pristine origin/main before this change).
feat(aggregator): /program hub + per-project pages for all projects (#1120, #1121)
…-mark-emit
# Conflicts:
# pkgs/id/src/web/markdown.rs
…ent-validation
fix(id-web): validate block/inline placement in prosemirror_to_markdown (#1043)
Closes #1186. Partial slices for #1124, #1125, #1126, #1128: cloud-program roadmap area, repo-fleet editorial refresh, id validation wording + source-doc links, lab-cluster status report + OCI gap.
feat(opencode): complete all enumerable provider model catalogs
…er-1301
feat(meta-exporter): laptop-side Meta quota exporter — 15-min file export (code#1301 Phase 1)
…te-1308
fix(opencode): remove shadowed duplicate cline-pass provider block
feat(opencode): Terra workhorse weight 1 → 2 (medium TTFT 1.43s)
…supervisor
fix(home): enroll claude-code-proxy (18749) in the proxy supervisor manifest
…-rekey
Fix undecryptable sops secret: muse password hash
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 292e73f711
ℹ️ 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".
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Comment on lines
+168
to
+171
|
|
new Promise((res, rej) => {
|
|
|
const i = ++id;
|
|
|
pending.set(i, { resolve: res, reject: rej });
|
|
|
ws.send(JSON.stringify({ id: i, method, params }));
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reject pending CDP calls when the socket disconnects
If the console tab or browser closes after the WebSocket opens but before Runtime.evaluate replies, this pending call never resolves or rejects: there is no close handler, and onerror only rejects the already-resolved connection promise. Consequently, the exporter never reaches the failure-document writer, leaving the previous successful latest.json in place instead of recording the failed tick. Reject pending calls on socket close/error and bound response waits.
Useful? React with 👍 / 👎.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Comment on lines
+6122
to
+6123
|
|
"openai-codex/gpt-6.1-terra",
|
|
|
"chatgpt/gpt-6.1-terra"
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Register Terra in the Codex proxy before routing requests to it
Both new subscription targets use bin/codex-proxy.mjs, but its MODELS list does not contain gpt-6.1-terra, and resolveModelAndEffort silently substitutes MODELS[0] for unknown models (lines 141–143). Consequently, requests selecting either of these Terra targets actually execute gpt-6.1-sol, including requests arriving through the workhorse and specialist pools. Add Terra to the proxy's supported models before enabling these targets so model selection and the advertised cost/capability assumptions remain accurate.
Useful? React with 👍 / 👎.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Comment on lines
+247
to
+248
|
|
const frame = targets.find(
|
|
|
(t) => t.type === "iframe" && typeof t.url === "string" && t.url.includes("billing.dev.meta.ai"),
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Match the PAYG iframe to the selected console team
When billing tabs for multiple teams are open, this selects the first billing iframe anywhere in the browser, independently of the console page and effectiveTeam used for the quota endpoints. The resulting successful document can therefore combine one team's quota and free credits with another team's PAYG balance. Associate the iframe with the selected console/team before reading it, or leave the balance null when that association cannot be verified.
Useful? React with 👍 / 👎.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Comment on lines
+812
to
+815
|
|
env = {
|
|
|
CLAUDE_CODE_PROXY_HOST = "127.0.0.1";
|
|
|
PATH = "/run/current-system/sw/bin:$HOME/.local/bin:/usr/bin:/bin";
|
|
|
};
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Disable the sandbox egress proxy for the laptop Claude bridge
On the laptop, this new supervisor entry leaves CLAUDE_CODE_PROXY_EGRESS unset, so bin/claude-code-proxy.mjs:45 defaults to the sandbox-only http://hatch-egress-proxy:3128. Its childEnv() then overwrites the Claude CLI's HTTP(S) proxy variables with that address, preventing real turns from reaching Anthropic even though the bridge's health endpoint succeeds. Set CLAUDE_CODE_PROXY_EGRESS = "" here, as the laptop Muse and CommandCode launch wrappers already do for their corresponding overrides.
Useful? React with 👍 / 👎.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Oct 28, 2026
This was referenced Nov 10, 2026
Uh oh!
There was an error while loading. Please reload this page.
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|