-
-
Notifications
You must be signed in to change notification settings - Fork 79.2k
openclaw logs --follow registers as paired device, rewrites paired.json #83656
Copy link
Copy link
Closed
Labels
P2Normal backlog priority with limited blast radius.Normal backlog priority with limited blast radius.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.ClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.ClawSweeper marked this issue as needing a product or behavior decision.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.impact:auth-providerAuth, provider routing, model choice, or SecretRef resolution may break.Auth, provider routing, model choice, or SecretRef resolution may break.impact:data-lossCan lose, corrupt, or silently drop user/session/config data.Can lose, corrupt, or silently drop user/session/config data.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.Very strong issue quality with high-confidence source-level or clear reproduction.
Metadata
Metadata
Assignees
Labels
P2Normal backlog priority with limited blast radius.Normal backlog priority with limited blast radius.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.ClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.ClawSweeper marked this issue as needing a product or behavior decision.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.impact:auth-providerAuth, provider routing, model choice, or SecretRef resolution may break.Auth, provider routing, model choice, or SecretRef resolution may break.impact:data-lossCan lose, corrupt, or silently drop user/session/config data.Can lose, corrupt, or silently drop user/session/config data.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.Very strong issue quality with high-confidence source-level or clear reproduction.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Bug Description
openclaw logs --followconnects through the gateway websocket layer and registers as a full paired device, causingpaired.jsonrewrites and contributing to file read race conditions.Steps to Reproduce
paired.jsonstate:stat ~/.openclaw/devices/paired.jsonopenclaw logs --followpaired.jsonagain:stat ~/.openclaw/devices/paired.jsonExpected Behavior
openclaw logs --followshould behave like a passive log reader (tail -F), not as a full gateway client. It should:paired.jsonActual Behavior
openclaw logs --followregisters as a device withclientMode: cliandoperator.writescopepaired.jsonrewrite (inode change observed)operator.writescope despite being a log readerEnvironment
paired.jsonentries: 4 (2 stale, 36-47 days old)Related Issues
paired.jsonstale entry accumulation and read racespaired.jsonleads to overwrite of all pairings #71873 — Silent read error onpaired.json(same underlying fragility)Recommendation
Add a CLI "observer" mode that:
paired.jsonOr alternatively: make
openclaw logs --followuse direct file tailing instead of websocket connection.