-
Notifications
You must be signed in to change notification settings - Fork 215
Tray chat repeatedly triggers first-run bootstrap prompt for an already configured workspace #729
Copy link
Copy link
Labels
P2Normal priority bug or improvement with limited blast radius.Normal priority bug or improvement with limited blast radius.clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.ClawSweeper found a clear likely implementation shape for this issue.clawsweeper:queueable-fixClawSweeper marked this issue as an existing queue_fix_pr work candidate.ClawSweeper marked this issue as an existing queue_fix_pr work candidate.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.impact:data-lossThis issue is about lost, corrupted, or silently dropped user/session/config data.This issue is about lost, corrupted, or silently dropped user/session/config data.impact:session-stateThis issue is about session, memory, transcript, context, or agent state drift.This issue is about session, memory, transcript, context, or agent state drift.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 priority bug or improvement with limited blast radius.Normal priority bug or improvement with limited blast radius.clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.ClawSweeper found a clear likely implementation shape for this issue.clawsweeper:queueable-fixClawSweeper marked this issue as an existing queue_fix_pr work candidate.ClawSweeper marked this issue as an existing queue_fix_pr work candidate.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.impact:data-lossThis issue is about lost, corrupted, or silently dropped user/session/config data.This issue is about lost, corrupted, or silently dropped user/session/config data.impact:session-stateThis issue is about session, memory, transcript, context, or agent state drift.This issue is about session, memory, transcript, context, or agent state drift.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.
Summary
The Windows Tray/Companion chat can repeatedly trigger the first-run bootstrap prompt even when OpenClaw has already been configured and the workspace already contains OpenClaw memory/configuration files.
This is risky because the generated first-run prompt asks the agent to start the initial setup ritual and modify files such as
SOUL.md, even though the user is not in a first-run state anymore.Environment
ws://127.0.0.1:18789Administrator/home/administrator/.openclaw/workspaceAGENTS.mdSOUL.mdTOOLS.mdIDENTITY.mdUSER.mdHEARTBEAT.mdMEMORY.mdWhat happened
After the Tray was already connected and chat was usable, the app still injected a first-run style user message:
This happened more than once from the Tray/chat flow. The user already had an OpenClaw workspace and existing configuration/memory files, so this should not have been treated as a brand-new installation.
Expected behavior
The first-run bootstrap prompt should only be injected for a true first-run/new-workspace state.
If the workspace already has OpenClaw state such as
SOUL.md,AGENTS.md,MEMORY.md, existing sessions, or a previously configured Gateway, the Tray should not automatically send the bootstrap ritual prompt.At minimum, the app should ask for explicit user confirmation before injecting a prompt that can cause the agent to rewrite workspace/personality/config files.
Actual behavior
The Tray/chat path can inject the first-run prompt even though:
Why this matters
This can cause the agent to perform setup actions against an already configured workspace. For an existing user, that can overwrite or drift important files such as
SOUL.mdor other workspace instructions.Related prior work
This may be adjacent to #457, which fixed a zero-state chat/session-key trap around fresh installs and
main/agent:main:mainsession handling.The remaining issue here appears to be that the first-run/onboarding trigger can still fire from the Tray/chat path even when the current workspace is not actually new.
Suggested fix