freemo
2b6ac00263
fix(config): resolve database_url relative to CLEVERAGENTS_HOME, not CWD
...
Ensure that when database_url is a relative path (like sqlite:///cleveragents.db),
it resolves relative to CLEVERAGENTS_HOME instead of the current working directory.
This fixes E2E test isolation where data from previous runs persisted across runs
at CWD, causing UNIQUE constraint failures.
Changes:
- Added _resolve_database_urls model validator in Settings to rewrite relative
SQLite paths to absolute paths under CLEVERAGENTS_HOME
- Updated get_database_url() in container.py to use CLEVERAGENTS_HOME as base
directory and create parent directories when CLEVERAGENTS_HOME is explicitly set
- Updated _check_database() in system.py to walk up directory tree for writable
ancestor check, handling cases where intermediate directories have not yet been
created
- Removed @tdd_expected_fail from TDD test (now passes genuinely)
ISSUES CLOSED : #1024
2026-04-22 00:45:09 +00:00
..
2026-04-05 17:53:56 +00:00
2026-04-03 00:29:46 +00:00
2026-04-03 00:29:46 +00:00
2026-04-05 17:53:56 +00:00
2026-04-04 20:38:16 +00:00
2026-04-05 17:53:56 +00:00
2026-04-05 17:53:56 +00:00
2026-04-05 21:10:14 +00:00
2026-04-02 23:53:13 +00:00
2026-04-05 21:26:33 +00:00
2026-04-05 08:12:32 +00:00
2026-04-05 21:19:40 +00:00
2026-04-05 07:49:49 +00:00
2026-04-17 16:28:45 +08:00
2026-04-05 21:19:40 +00:00
2026-04-05 21:19:40 +00:00
2026-04-05 21:19:40 +00:00
2026-04-17 16:28:45 +08:00
2026-04-17 16:28:45 +08:00
2026-04-05 19:48:40 +00:00
2026-04-17 16:28:45 +08:00
2026-04-17 16:28:45 +08:00
2026-04-17 16:28:45 +08:00
2026-04-05 18:18:08 +00:00
2026-04-17 16:28:45 +08:00
2026-04-04 20:38:16 +00:00
2026-04-04 20:38:16 +00:00
2026-04-05 09:46:16 +00:00
2026-04-15 03:21:05 +00:00
2026-04-05 17:55:54 +00:00
2026-04-20 14:27:44 +00:00
2026-04-05 21:13:07 +00:00
2026-04-05 21:13:07 +00:00
2026-04-17 18:34:16 +00:00
2026-04-17 18:34:16 +00:00
2026-04-17 18:34:16 +00:00
2026-04-17 11:46:38 +00:00
2026-04-02 19:09:04 +00:00
2026-04-05 08:39:14 +00:00
2026-04-05 19:48:40 +00:00
2026-04-02 19:09:04 +00:00
2026-04-02 19:09:04 +00:00
2026-04-02 19:09:04 +00:00
2026-04-05 08:39:14 +00:00
2026-04-05 19:48:40 +00:00
2026-04-05 19:48:40 +00:00
2026-04-05 19:48:40 +00:00
2026-04-05 19:48:40 +00:00
2026-04-05 04:33:46 +00:00
2026-04-05 04:33:46 +00:00
2026-04-05 20:56:32 +00:00
2026-04-09 13:00:47 +00:00
2026-04-15 00:24:13 +00:00
2026-04-12 16:43:30 +00:00
2026-04-05 04:09:27 +00:00
2026-04-05 10:17:24 +00:00
2026-04-04 20:38:16 +00:00
2026-04-04 20:38:16 +00:00
2026-04-04 20:38:16 +00:00
2026-04-21 16:53:08 +00:00
2026-04-21 11:31:15 +00:00
2026-04-21 16:53:08 +00:00
2026-04-21 16:53:08 +00:00
2026-04-21 16:53:08 +00:00
2026-04-04 20:38:16 +00:00
2026-04-08 11:02:14 +00:00
2026-04-05 21:06:04 +00:00
2026-04-03 02:01:45 +00:00
2026-04-20 06:08:50 +00:00
2026-04-08 11:02:14 +00:00
2026-04-04 20:38:16 +00:00
2026-04-05 17:49:20 +00:00
2026-04-09 14:17:50 +00:00
2026-04-05 08:29:55 +00:00
2026-04-05 18:20:15 +00:00
2026-04-05 18:20:15 +00:00
2026-04-05 05:46:05 +00:00
2026-04-17 22:49:46 +00:00
2026-04-05 08:26:50 +00:00
2026-04-05 07:06:53 +00:00
2026-04-04 23:48:02 +00:00
2026-04-02 19:09:04 +00:00
2026-04-04 20:38:16 +00:00
2026-04-04 20:38:16 +00:00
2026-04-05 07:48:02 +00:00
2026-04-19 17:10:17 +00:00
2026-04-17 17:40:00 +00:00
2026-04-21 03:38:05 +00:00
2026-04-02 19:09:04 +00:00
2026-04-17 08:34:33 +00:00
2026-04-09 14:17:50 +00:00
2026-04-09 14:17:50 +00:00
2026-04-05 19:46:23 +00:00
2026-04-04 20:38:16 +00:00
2026-04-02 19:09:04 +00:00
2026-04-05 21:11:36 +00:00
2026-04-17 08:34:33 +00:00
2026-04-17 08:34:33 +00:00
2026-04-17 08:34:33 +00:00
2026-04-21 11:31:15 +00:00
2026-04-21 15:36:09 +01:00
2026-04-05 20:46:24 +00:00
2026-04-05 19:48:40 +00:00
2026-04-10 18:57:41 +01:00
2026-04-02 19:09:04 +00:00
2026-04-09 14:17:50 +00:00
2026-04-03 13:38:33 -04:00
2026-04-04 20:38:16 +00:00
2026-04-17 16:28:45 +08:00
2026-04-04 20:38:16 +00:00
2026-04-05 04:38:31 +00:00
2026-04-03 00:01:48 +00:00
2026-04-09 06:11:39 +00:00
2026-04-05 19:48:40 +00:00
2026-04-15 06:37:18 +00:00
2026-04-02 21:30:05 +00:00
2026-04-15 06:37:18 +00:00
2026-04-04 20:38:16 +00:00
2026-04-10 18:59:10 +00:00
2026-04-05 08:22:36 +00:00
2026-04-05 18:00:27 +00:00
2026-04-04 20:38:16 +00:00
2026-04-04 20:38:16 +00:00
2026-04-04 20:38:16 +00:00
2026-04-05 18:13:11 +00:00
2026-04-17 11:46:38 +00:00
2026-04-08 11:02:14 +00:00
2026-04-05 07:29:35 +00:00
2026-04-05 09:03:32 +00:00
2026-04-05 08:04:27 +00:00
2026-04-05 04:37:45 +00:00
2026-04-21 11:56:19 +00:00
2026-04-04 20:38:16 +00:00
2026-04-04 23:08:32 +00:00
2026-04-04 23:08:32 +00:00
2026-04-05 07:28:12 +00:00
2026-04-05 21:12:13 +00:00
2026-04-21 15:36:09 +01:00
2026-04-05 09:38:43 +00:00
2026-04-05 18:19:19 +00:00
2026-04-04 20:38:16 +00:00
2026-04-05 07:15:48 +00:00
2026-04-05 21:11:53 +00:00
2026-04-05 19:48:40 +00:00
2026-04-05 19:48:40 +00:00
2026-04-05 19:48:40 +00:00
2026-04-08 11:02:14 +00:00
2026-04-21 15:36:09 +01:00
2026-04-05 07:18:27 +00:00
2026-04-03 19:00:22 +00:00
2026-04-06 07:55:09 +00:00
2026-04-05 08:22:45 +00:00
2026-04-05 17:52:59 +00:00
2026-04-21 15:36:09 +01:00
2026-04-15 13:37:16 +08:00
2026-04-05 07:39:57 +00:00
2026-04-21 06:42:10 +00:00
2026-04-03 19:03:15 +00:00
2026-04-02 19:09:04 +00:00
2026-04-09 14:17:50 +00:00
2026-04-13 21:16:55 +00:00
2026-04-10 05:21:24 +00:00
2026-04-04 20:38:16 +00:00
2026-04-21 15:36:09 +01:00
2026-04-21 15:36:09 +01:00
2026-04-22 00:45:09 +00:00
2026-04-13 18:49:11 +00:00
2026-04-08 11:02:14 +00:00
2026-04-02 23:53:13 +00:00
2026-04-02 23:59:37 +00:00
2026-04-21 08:45:06 +00:00
2026-04-06 07:55:09 +00:00
2026-04-05 04:19:52 +00:00
2026-04-06 07:55:09 +00:00
2026-04-06 07:55:09 +00:00
2026-04-05 18:08:09 +00:00
2026-04-04 20:38:16 +00:00
2026-04-05 18:08:09 +00:00
2026-04-05 18:09:41 +00:00
2026-04-03 05:56:27 +00:00
2026-04-05 17:52:30 +00:00
2026-04-02 20:48:33 +00:00
2026-04-05 17:50:51 +00:00
2026-04-05 17:50:51 +00:00
2026-04-03 05:56:27 +00:00
2026-04-06 07:55:09 +00:00
2026-04-05 17:52:59 +00:00
2026-04-04 20:38:16 +00:00