Oleg Kossoy
ebe5730401
fix: use STATE_DIR instead of hardcoded ~/.openclaw for identity and canvas ( #4824 )
...
* fix: use STATE_DIR instead of hardcoded ~/.openclaw for identity and canvas
device-identity.ts and canvas-host/server.ts used hardcoded
path.join(os.homedir(), '.openclaw', ...) ignoring OPENCLAW_STATE_DIR
env var and the resolveStateDir() logic from config/paths.ts.
This caused ~/.openclaw/identity and ~/.openclaw/canvas directories
to be created even when state dir was overridden or resided elsewhere.
* fix: format and remove duplicate imports
* fix: scope state-dir patch + add regression tests (#4824 ) (thanks @kossoy)
* fix: align state-dir fallbacks in hooks and agent paths (#4824 ) (thanks @kossoy)
---------
Co-authored-by: Gustavo Madeira Santana <gumadeiras@gmail.com >
2026-02-07 22:16:59 -05:00
..
2026-02-01 10:03:47 +09:00
2026-02-06 18:03:03 -08:00
2026-02-07 19:16:51 -06:00
2026-02-01 10:03:47 +09:00
2026-02-01 10:03:47 +09:00
2026-02-02 17:36:49 +00:00
2026-02-07 00:19:04 -08:00
2026-02-01 10:03:47 +09:00
2026-02-01 10:03:47 +09:00
2026-01-31 16:19:20 +09:00
2026-01-31 16:19:20 +09:00
2026-01-14 01:17:56 +00:00
2026-02-01 10:03:47 +09:00
2026-02-01 10:03:47 +09:00
2026-01-30 03:16:21 +01:00
2026-02-05 00:17:09 -08:00
2026-02-05 00:17:09 -08:00
2026-02-01 10:03:47 +09:00
2026-02-01 10:03:47 +09:00
2026-01-30 03:16:21 +01:00
2026-01-31 16:19:20 +09:00
2026-02-01 10:03:47 +09:00
2026-02-01 10:03:47 +09:00
2026-01-31 18:31:49 +09:00
2026-02-01 10:03:47 +09:00
2026-01-14 15:02:19 +00:00
2026-02-01 10:03:47 +09:00
2026-02-01 10:03:47 +09:00
2026-01-31 16:19:20 +09:00
2026-01-31 16:19:20 +09:00
2026-02-01 10:03:47 +09:00
2026-01-14 15:02:19 +00:00
2026-02-04 19:51:06 +00:00
2026-02-01 10:03:47 +09:00
2026-02-04 01:03:59 -08:00
2026-01-14 01:17:56 +00:00
2026-01-31 16:19:20 +09:00
2026-01-14 01:17:56 +00:00
2026-02-01 10:03:47 +09:00
2026-02-01 10:03:47 +09:00
2026-02-02 15:37:05 +09:00
2026-01-30 03:16:21 +01:00
2026-02-01 10:03:47 +09:00
2026-02-01 10:03:47 +09:00
2026-01-21 10:23:30 +00:00
2026-02-01 10:03:47 +09:00
2026-02-05 15:52:51 -08:00
2026-01-14 01:17:56 +00:00
2026-02-04 01:03:59 -08:00
2026-01-31 16:19:20 +09:00
2026-01-31 16:19:20 +09:00
2026-01-30 03:16:21 +01:00
2026-02-02 02:07:47 -08:00
2026-01-30 03:16:21 +01:00
2026-02-01 10:03:47 +09:00
2026-02-02 23:45:05 -08:00
2026-02-02 23:45:05 -08:00
2026-01-31 16:04:04 +09:00
2026-02-01 10:03:47 +09:00
2026-01-18 08:45:29 +00:00
2026-01-30 03:16:21 +01:00
2026-02-01 10:03:47 +09:00
2026-02-01 10:03:47 +09:00
2026-02-01 10:03:47 +09:00
2026-02-02 17:36:49 +00:00
2026-01-14 01:17:56 +00:00
2026-01-31 16:19:20 +09:00
2026-02-01 10:03:47 +09:00
2026-02-01 10:03:47 +09:00
2026-01-17 05:48:56 +00:00
2026-01-31 16:19:20 +09:00
2026-02-01 10:03:47 +09:00
2026-02-01 10:03:47 +09:00
2026-01-31 16:19:20 +09:00
2026-01-31 16:19:20 +09:00
2026-02-01 10:03:47 +09:00
2026-02-01 10:03:47 +09:00
2026-02-02 21:44:02 +09:00
2026-01-31 16:19:20 +09:00
2026-01-31 16:19:20 +09:00
2026-02-01 10:03:47 +09:00
2026-01-31 16:19:20 +09:00
2026-01-21 04:39:15 +00:00
2026-01-31 16:04:04 +09:00
2026-02-05 16:37:58 -08:00
2026-01-14 01:17:56 +00:00
2026-02-01 10:03:47 +09:00
2026-02-01 10:03:47 +09:00
2026-02-01 10:03:47 +09:00
2026-02-01 10:03:47 +09:00
2026-02-01 10:03:47 +09:00
2026-02-01 10:03:47 +09:00
2026-02-01 10:03:47 +09:00
2026-02-01 10:03:47 +09:00
2026-02-01 10:03:47 +09:00
2026-02-03 13:56:20 -05:00
2026-02-03 13:56:20 -05:00
2026-02-01 10:03:47 +09:00
2026-01-31 16:19:20 +09:00
2026-01-30 03:16:21 +01:00
2026-02-03 20:18:16 +09:00
2026-02-07 22:16:59 -05:00
2026-02-01 10:03:47 +09:00
2025-11-26 00:53:53 +01:00
2026-02-01 10:03:47 +09:00