Peter Steinberger
41069d9747
fix(skills): reject an unknown --agent instead of inventing one ( #126954 )
...
`openclaw skills check --agent nope-agent` exited 0 and printed a full report
headed "Agent: nope-agent" with 53 skills / 44 eligible, while the install's only
real agent reported 57 / 48. It did not fall back to the default -- it fabricated
an agent and produced confident, different numbers for it. `skills list` behaved
the same way.
Every sibling --agent surface already rejects an unknown id: `models auth list`,
`models list`, `models status`, `memory status`, and `sessions list` all exit 1
with "Unknown agent id". Skills was the only holdout, and the canonical helper
for it already exists -- `resolveConfiguredAgentId`, added for this exact class
when `memory --agent` had the same hole.
`resolveSkillsWorkspace` took the explicit --agent value verbatim while both the
workspace-inferred and default paths were validated. Route the explicit value
through `resolveConfiguredAgentId` so the message and behavior match the
siblings, including the profile-aware hint, and reject a blank --agent the way
memory does. Workspace inference and default resolution are unchanged.
Production +9 LOC.
2026-08-20 19:54:24 -07:00
..
2026-08-20 00:32:59 -07:00
2026-08-20 01:45:01 -07:00
2026-08-20 05:42:43 -07:00
2026-08-12 09:25:28 -07:00
2026-08-20 13:51:36 -07:00
2026-08-17 11:49:06 -07:00
2026-08-20 02:06:09 -07:00
2026-08-20 18:48:11 -07:00
2026-08-04 21:22:07 -06:00
2026-08-18 22:34:22 -06:00
2026-08-11 12:40:03 -07:00
2026-08-09 12:50:06 -07:00
2026-08-09 12:50:06 -07:00
2026-08-08 11:23:39 -07:00
2026-08-12 20:26:30 -07:00
2026-08-09 16:44:25 -07:00
2026-08-12 09:25:28 -07:00
2026-08-11 06:21:28 -07:00
2026-08-11 06:21:28 -07:00
2026-08-19 21:27:09 -07:00
2026-08-11 05:41:48 -07:00
2026-08-11 05:41:48 -07:00
2026-08-18 13:37:17 -07:00
2026-08-18 13:37:17 -07:00
2026-08-13 19:04:33 -07:00
2026-08-13 19:04:33 -07:00
2026-08-03 05:27:24 +08:00
2026-08-09 23:52:59 -07:00
2026-08-09 23:52:59 -07:00
2026-08-11 13:47:38 -07:00
2026-08-12 11:37:04 -07:00
2026-08-12 11:37:04 -07:00
2026-08-07 18:51:45 -07:00
2026-08-07 18:51:45 -07:00
2026-08-07 18:51:45 -07:00
2026-08-09 03:30:21 -07:00
2026-08-09 03:30:21 -07:00
2026-08-14 20:52:45 -07:00
2026-08-08 08:05:50 -07:00
2026-08-15 02:32:38 -07:00
2026-08-09 03:30:21 -07:00
2026-08-15 02:32:38 -07:00
2026-08-16 16:08:56 -07:00
2026-08-17 19:07:18 -07:00
2026-08-11 12:57:35 -07:00
2026-08-16 19:40:46 -07:00
2026-08-16 19:40:46 -07:00
2026-08-17 09:44:31 -07:00
2026-08-16 23:50:52 -07:00
2026-08-16 23:50:52 -07:00
2026-08-02 00:20:39 -07:00
2026-08-16 19:40:46 -07:00
2026-08-18 12:10:09 -07:00
2026-08-18 12:10:09 -07:00
2026-08-17 03:58:57 -07:00
2026-08-09 12:50:06 -07:00
2026-08-16 23:50:52 -07:00
2026-08-16 23:50:52 -07:00
2026-07-31 10:16:45 -06:00
2026-07-31 10:16:45 -06:00
2026-08-09 06:00:06 -07:00
2026-08-17 09:44:31 -07:00
2026-08-16 19:40:46 -07:00
2026-08-02 09:48:14 +08:00
2026-08-02 09:48:14 +08:00
2026-08-02 23:03:07 -07:00
2026-08-10 18:17:50 -07:00
2026-08-17 03:50:52 -07:00
2026-08-17 03:50:52 -07:00
2026-08-10 18:17:13 -07:00
2026-07-31 08:59:11 -07:00
2026-07-31 08:59:11 -07:00
2026-07-31 08:59:11 -07:00
2026-07-31 08:59:11 -07:00
2026-08-17 03:50:52 -07:00
2026-08-17 05:48:02 -07:00
2026-08-17 17:26:09 -07:00
2026-07-29 12:04:07 -04:00
2026-08-11 23:26:37 -07:00
2026-08-18 08:37:21 -07:00
2026-08-18 08:37:21 -07:00
2026-08-18 13:45:57 -07:00
2026-08-18 13:45:57 -07:00
2026-08-18 13:45:57 -07:00
2026-08-17 19:05:29 -07:00
2026-08-12 15:55:16 -07:00
2026-08-17 19:05:29 -07:00
2026-08-01 10:03:33 -07:00
2026-08-16 01:46:23 -07:00
2026-08-16 01:46:23 -07:00
2026-08-18 16:08:48 -07:00
2026-08-18 16:08:48 -07:00
2026-08-02 15:00:26 -07:00
2026-08-18 22:44:33 -07:00
2026-08-08 13:29:18 -07:00
2026-08-10 11:08:17 +05:30
2026-08-10 18:17:13 -07:00
2026-08-12 06:17:39 -07:00
2026-08-17 05:13:35 -07:00
2026-08-17 05:13:35 -07:00
2026-08-12 06:17:39 -07:00
2026-08-16 15:09:58 -07:00
2026-08-16 15:09:58 -07:00
2026-08-14 19:29:44 -07:00
2026-08-14 19:29:44 -07:00
2026-08-02 02:56:08 -07:00
2026-08-12 09:04:51 -07:00
2026-08-16 02:13:57 -07:00
2026-08-16 15:09:58 -07:00
2026-08-18 12:12:37 -07:00
2026-08-18 12:12:37 -07:00
2026-08-10 06:47:43 -07:00
2026-08-17 21:18:02 -07:00
2026-08-17 21:18:02 -07:00
2026-08-02 19:56:40 -07:00
2026-08-19 01:52:11 -07:00
2026-08-17 21:31:25 -07:00
2026-08-20 13:51:36 -07:00
2026-08-12 09:25:28 -07:00
2026-08-17 17:39:39 -07:00
2026-08-17 17:39:39 -07:00
2026-08-17 17:39:39 -07:00
2026-08-17 17:39:39 -07:00
2026-08-10 13:48:32 +05:30
2026-08-18 11:28:13 -07:00
2026-08-11 15:55:40 -07:00
2026-08-15 03:58:45 +10:00
2026-08-20 00:32:59 -07:00
2026-08-20 00:32:59 -07:00
2026-08-15 13:07:02 +10:00
2026-08-15 03:58:45 +10:00
2026-08-16 15:09:58 -07:00
2026-08-16 15:09:58 -07:00
2026-08-13 16:57:26 -07:00
2026-08-13 16:57:26 -07:00
2026-08-16 17:32:49 -07:00
2026-08-16 17:32:49 -07:00
2026-08-14 09:34:54 -07:00
2026-08-11 20:58:51 +00:00
2026-08-11 20:58:51 +00:00
2026-08-10 09:55:41 -07:00
2026-08-11 14:11:21 -07:00
2026-08-11 20:58:51 +00:00
2026-08-07 21:06:29 -07:00
2026-08-20 01:14:43 -07:00
2026-08-20 01:14:43 -07:00
2026-08-02 06:36:43 -07:00
2026-08-15 09:52:24 -07:00
2026-08-19 13:02:19 -07:00
2026-08-09 12:50:06 -07:00
2026-08-09 12:50:06 -07:00
2026-08-14 09:50:19 -07:00
2026-08-14 09:50:19 -07:00
2026-08-11 06:50:22 -07:00
2026-08-11 00:02:18 -07:00
2026-08-11 00:02:18 -07:00
2026-08-13 23:32:32 -07:00
2026-08-13 04:41:37 -07:00
2026-08-13 04:41:37 -07:00
2026-08-10 11:08:17 +05:30
2026-08-10 11:08:17 +05:30
2026-08-02 06:36:43 -07:00
2026-08-10 07:10:06 +00:00
2026-08-10 07:10:06 +00:00
2026-08-09 12:50:06 -07:00
2026-08-12 09:25:28 -07:00
2026-08-10 06:42:37 -07:00
2026-08-05 04:08:35 +08:00
2026-08-05 04:08:35 +08:00
2026-08-01 21:18:47 -07:00
2026-08-01 21:18:47 -07:00
2026-08-02 02:56:08 -07:00
2026-08-02 02:56:08 -07:00
2026-08-12 00:49:29 -07:00
2026-08-04 08:29:29 +08:00
2026-08-15 03:58:45 +10:00
2026-08-02 02:56:08 -07:00
2026-08-11 10:41:50 -07:00
2026-08-01 01:56:44 -07:00
2026-08-01 18:24:08 -07:00
2026-08-11 11:18:24 -07:00
2026-08-11 10:41:50 -07:00
2026-08-15 03:58:45 +10:00
2026-08-15 03:58:45 +10:00
2026-08-12 00:49:29 -07:00
2026-08-18 02:08:56 -07:00
2026-08-16 15:09:58 -07:00
2026-08-11 11:18:24 -07:00
2026-08-15 03:58:45 +10:00
2026-08-15 03:58:45 +10:00
2026-08-14 16:34:10 -07:00
2026-08-15 03:58:45 +10:00
2026-08-13 19:04:33 -07:00
2026-08-13 19:04:33 -07:00
2026-08-07 02:55:08 -07:00
2026-08-07 02:55:08 -07:00
2026-08-02 01:18:40 -07:00
2026-08-11 15:10:27 -07:00
2026-08-11 15:10:27 -07:00
2026-07-29 11:43:41 -04:00
2026-08-04 09:07:35 +08:00
2026-08-10 06:42:37 -07:00
2026-08-10 06:42:37 -07:00
2026-08-12 00:49:29 -07:00
2026-08-01 07:38:20 -07:00
2026-08-01 07:38:20 -07:00
2026-08-18 02:08:56 -07:00
2026-08-12 00:49:29 -07:00
2026-08-12 00:49:29 -07:00
2026-08-12 09:25:28 -07:00
2026-08-02 13:38:28 -07:00
2026-07-30 05:22:50 -07:00
2026-08-12 10:31:04 -07:00
2026-08-16 23:00:08 -07:00
2026-08-16 23:00:08 -07:00
2026-08-16 21:49:21 -07:00
2026-08-20 02:06:09 -07:00
2026-08-17 19:07:18 -07:00
2026-08-11 06:50:22 -07:00
2026-08-11 06:50:22 -07:00
2026-08-16 04:25:03 -07:00
2026-08-14 19:18:58 -07:00
2026-08-11 11:18:24 -07:00
2026-08-14 01:39:19 -07:00
2026-08-12 09:25:28 -07:00
2026-08-17 14:39:08 -07:00
2026-08-17 14:39:08 -07:00
2026-08-02 02:56:08 -07:00
2026-08-02 02:56:08 -07:00
2026-08-12 09:25:28 -07:00
2026-08-20 17:02:59 -07:00
2026-08-20 17:02:59 -07:00
2026-08-16 17:41:00 -07:00
2026-08-12 17:07:48 -07:00
2026-08-14 19:18:58 -07:00
2026-08-02 00:20:39 -07:00
2026-08-02 00:20:39 -07:00
2026-07-30 05:22:50 -07:00
2026-08-19 13:02:19 -07:00
2026-08-11 23:26:37 -07:00
2026-08-17 09:49:19 -07:00
2026-08-19 13:02:19 -07:00
2026-08-20 17:56:20 -07:00
2026-08-10 07:08:40 -07:00
2026-08-17 19:07:18 -07:00
2026-08-13 20:49:31 -07:00
2026-08-13 20:49:31 -07:00
2026-08-11 02:30:04 -07:00
2026-08-11 13:34:24 -07:00
2026-08-11 13:34:24 -07:00
2026-08-09 16:44:25 -07:00
2026-08-09 16:44:25 -07:00
2026-08-18 03:29:56 -07:00
2026-08-18 03:29:56 -07:00
2026-07-30 05:22:50 -07:00
2026-08-02 18:06:46 -07:00
2026-08-20 19:54:24 -07:00
2026-08-15 09:52:24 -07:00
2026-08-16 15:09:58 -07:00
2026-08-16 15:09:58 -07:00
2026-08-20 19:54:24 -07:00
2026-08-20 19:54:24 -07:00
2026-08-20 19:54:24 -07:00
2026-08-20 19:54:24 -07:00
2026-08-11 05:41:48 -07:00
2026-08-11 05:41:48 -07:00
2026-08-11 06:50:22 -07:00
2026-08-11 06:50:22 -07:00
2026-08-16 15:09:58 -07:00
2026-08-17 19:07:18 -07:00
2026-08-12 09:25:28 -07:00
2026-08-18 08:50:01 -07:00
2026-08-18 08:50:01 -07:00
2026-08-09 02:52:06 -07:00
2026-08-14 19:18:58 -07:00
2026-08-20 04:29:02 -07:00
2026-08-18 22:34:22 -06:00
2026-08-17 02:29:23 -07:00
2026-08-09 08:48:48 -07:00
2026-08-09 08:48:48 -07:00
2026-08-16 15:09:58 -07:00
2026-08-16 15:09:58 -07:00
2026-08-09 07:56:15 -07:00
2026-08-09 07:56:15 -07:00
2026-08-15 17:46:44 -07:00
2026-08-18 21:21:25 -07:00
2026-08-18 21:21:25 -07:00