Commit d08efe3
codejunkie99
fix(openclaw): surface .openclaw-system.md fallback when agents add fails
Addresses codex review P2 on install.sh:103-111.
When `openclaw` is on PATH but `agents add --workspace` fails (older forks
that don't support the subcommand or flag), the previous failure message
told the user to retry the same unsupported command. That left users on
older OpenClaw builds without a working setup even though install.sh had
already written `.openclaw-system.md` — the exact backward-compat include
those builds can use.
Now when registration fails (not "already exists"), the installer points
at `.openclaw-system.md` with `openclaw --system-prompt-file <abs>` as
the fallback, and keeps the retry command as a secondary option. Same
change on the "CLI not on PATH" branch, since we can't know what fork
the user is about to install.
Mirrored in install.ps1 (success, failure, catch, and not-on-PATH branches).1 parent 192341e commit d08efe3
2 files changed
Lines changed: 21 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
120 | | - | |
121 | | - | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
122 | 125 | | |
123 | 126 | | |
124 | 127 | | |
125 | | - | |
126 | | - | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
127 | 131 | | |
128 | 132 | | |
129 | | - | |
| 133 | + | |
130 | 134 | | |
131 | | - | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
132 | 138 | | |
133 | 139 | | |
134 | 140 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
110 | | - | |
111 | | - | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
112 | 115 | | |
113 | 116 | | |
114 | | - | |
| 117 | + | |
115 | 118 | | |
116 | | - | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
117 | 122 | | |
118 | 123 | | |
119 | 124 | | |
| |||
0 commit comments