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-15 06:37:18 +00:00
2026-04-17 16:28:45 +08:00
2026-04-14 19:26:49 +00:00
2026-04-02 16:59:07 +00:00
2026-04-22 00:45:09 +00:00
2026-04-13 04:56:01 +00:00
2026-03-31 21:47:12 +00:00
2026-04-03 00:29:46 +00:00
2026-04-02 16:51:04 +00:00
2026-04-13 04:56:01 +00:00
2026-04-02 23:53:13 +00:00
2026-04-01 06:16:41 +00:00
2026-04-01 06:16:41 +00:00
2026-04-05 21:26:33 +00:00
2026-03-31 21:47:12 +00:00
2026-04-13 04:56:01 +00:00
2026-04-13 04:56:01 +00:00
2026-04-13 04:56:01 +00:00
2026-04-17 16:28:45 +08:00
2026-04-05 21:19:40 +00:00
2026-04-13 04:56:01 +00:00
2026-04-13 04:56:01 +00:00
2026-03-30 19:35:23 +00:00
2026-03-31 21:47:12 +00:00
2026-04-17 16:28:45 +08:00
2026-04-08 11:02:14 +00:00
2026-04-13 04:56:01 +00:00
2026-03-26 13:41:31 +00:00
2026-03-31 21:47:12 +00:00
2026-04-02 16:58:36 +00:00
2026-03-27 23:53:22 +00:00
2026-04-02 17:00:53 +00:00
2026-03-26 17:35:34 +00:00
2026-04-02 06:21:49 +00:00
2026-03-30 13:18:07 +01:00
2026-04-13 04:56:01 +00:00
2026-04-15 03:21:05 +00:00
2026-04-20 13:54:28 +00:00
2026-04-13 04:56:01 +00:00
2026-04-17 18:33:39 +00:00
2026-03-31 21:47:12 +00:00
2026-04-17 11:46:38 +00:00
2026-04-13 04:56:01 +00:00
2026-04-02 19:09:04 +00:00
2026-04-05 08:39:14 +00:00
2026-04-13 04:56:01 +00:00
2026-04-13 04:56:01 +00:00
2026-04-08 11:02:14 +00:00
2026-04-13 04:56:01 +00:00
2026-04-02 19:09:04 +00:00
2026-04-02 19:09:04 +00:00
2026-04-13 04:56:01 +00:00
2026-04-02 19:09:04 +00:00
2026-03-31 21:47:12 +00:00
2026-04-01 06:16:41 +00:00
2026-04-13 04:56:01 +00:00
2026-04-13 04:56:01 +00:00
2026-03-31 21:47:12 +00:00
2026-04-13 04:56:01 +00:00
2026-03-31 21:47:12 +00:00
2026-03-30 21:48:01 +00:00
2026-04-05 07:43:56 +00:00
2026-03-28 05:27:14 +00:00
2026-04-01 01:46:37 +00:00
2026-04-05 17:55:54 +00:00
2026-04-13 04:56:01 +00:00
2026-04-05 18:20:15 +00:00
2026-04-13 04:56:01 +00:00
2026-03-31 01:49:16 +00:00
2026-04-17 11:46:38 +00:00
2026-03-29 18:57:15 +01:00
2026-04-17 11:46:38 +00:00
2026-04-06 07:55:09 +00:00
2026-04-12 08:15:49 +00:00
2026-04-05 04:33:46 +00:00
2026-04-05 04:33:46 +00:00
2026-03-27 12:57:03 +00:00
2026-04-08 11:02:14 +00:00
2026-04-13 04:56:01 +00:00
2026-04-13 04:56:01 +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-02 19:09:04 +00:00
2026-03-29 16:23:04 +01:00
2026-03-30 17:06:49 -04:00
2026-03-31 21:47:12 +00:00
2026-04-05 04:09:27 +00:00
2026-04-13 04:56:01 +00:00
2026-04-13 04:56:01 +00:00
2026-03-31 21:47:12 +00:00
2026-03-26 07:52:09 +00:00
2026-04-05 04:22:46 +00:00
2026-04-05 04:22:46 +00:00
2026-04-05 04:22:46 +00:00
2026-04-05 04:22:46 +00:00
2026-04-05 04:22:46 +00:00
2026-04-04 20:38:16 +00:00
2026-04-13 04:56:01 +00:00
2026-04-13 04:56:01 +00:00
2026-04-13 04:56:01 +00:00
2026-04-21 16:53:08 +00:00
2026-03-31 21:47:12 +00:00
2026-04-13 04:56:01 +00:00
2026-04-05 08:22:45 +00:00
2026-03-31 21:47:12 +00:00
2026-04-02 17:08:52 +00:00
2026-04-05 18:08:56 +00:00
2026-04-05 21:06:04 +00:00
2026-03-27 23:53:22 +00:00
2026-04-04 20:38:16 +00:00
2026-04-20 06:08:50 +00:00
2026-04-05 08:43:01 +00:00
2026-04-15 13:37:16 +08:00
2026-04-02 17:07:48 +00:00
2026-04-02 16:53:03 +00:00
2026-03-31 16:01:58 +00:00
2026-04-13 04:56:01 +00:00
2026-03-31 21:47:12 +00:00
2026-03-31 16:01:58 +00:00
2026-03-31 21:47:12 +00:00
2026-03-30 13:19:08 +00:00
2026-04-02 16:58:39 +00:00
2026-04-05 17:49:20 +00:00
2026-03-31 21:47:12 +00:00
2026-03-31 21:47:12 +00:00
2026-04-05 08:29:55 +00:00
2026-03-31 21:47:12 +00:00
2026-04-09 14:17:50 +00:00
2026-03-29 18:57:15 +01:00
2026-04-05 05:46:05 +00:00
2026-04-02 16:59:14 +00:00
2026-04-17 22:49:46 +00:00
2026-04-05 08:26:50 +00:00
2026-03-30 09:21:51 +00:00
2026-03-27 11:10:56 +00:00
2026-04-02 16:58:32 +00:00
2026-03-31 21:47:12 +00:00
2026-03-30 11:51:27 +00:00
2026-03-31 21:47:12 +00:00
2026-04-02 16:52:33 +00:00
2026-04-05 07:06:53 +00:00
2026-03-31 21:47:12 +00:00
2026-04-02 16:52:33 +00:00
2026-03-31 21:47:12 +00:00
2026-04-02 19:09:04 +00:00
2026-03-30 08:42:48 +00:00
2026-04-13 04:56:01 +00:00
2026-03-31 21:47:12 +00:00
2026-03-31 21:47:12 +00:00
2026-04-05 07:48:02 +00:00
2026-03-30 22:42:15 +00:00
2026-03-30 22:42:15 +00:00
2026-04-19 17:10:17 +00:00
2026-04-13 04:56:01 +00:00
2026-04-21 03:38:05 +00:00
2026-03-30 19:52:51 +00:00
2026-03-31 21:47:12 +00:00
2026-03-29 18:57:15 +01:00
2026-04-02 17:08:38 +00:00
2026-04-02 17:07:41 +00:00
2026-04-04 20:38:16 +00:00
2026-04-17 08:34:33 +00:00
2026-04-02 19:09:04 +00:00
2026-04-13 04:56:01 +00:00
2026-04-05 21:06:55 +00:00
2026-04-04 20:38:16 +00:00
2026-04-14 21:36:35 +00:00
2026-04-13 04:56:01 +00:00
2026-04-17 08:34:33 +00:00
2026-04-02 19:09:04 +00:00
2026-04-17 08:34:33 +00:00
2026-04-17 08:34:33 +00:00
2026-04-13 04:56:01 +00:00
2026-04-21 11:31:15 +00:00
2026-04-14 19:26:49 +00:00
2026-04-05 20:46:24 +00:00
2026-04-13 04:56:01 +00:00
2026-04-04 20:38:16 +00:00
2026-04-02 19:09:04 +00:00
2026-03-31 21:47:12 +00:00
2026-04-13 04:56:01 +00:00
2026-04-13 04:56:01 +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-03-30 23:40:36 +01:00
2026-03-31 03:58:43 +00:00
2026-04-10 18:59:10 +00:00
2026-04-05 08:22:36 +00:00
2026-03-30 17:12:20 +00:00
2026-03-30 08:42:48 +00:00
2026-04-13 04:56:01 +00:00
2026-04-13 04:56:01 +00:00
2026-03-30 14:33:28 +00:00
2026-04-13 04:56:01 +00:00
2026-03-31 21:47:12 +00:00
2026-04-05 18:00:27 +00:00
2026-03-31 21:47:12 +00:00
2026-04-13 04:56:01 +00:00
2026-03-30 10:18:19 +00:00
2026-04-13 04:56:01 +00:00
2026-03-31 21:47:12 +00:00
2026-04-13 04:56:01 +00:00
2026-04-02 16:52:33 +00:00
2026-04-13 04:56:01 +00:00
2026-03-31 21:47:12 +00:00
2026-04-01 13:02:24 +00:00
2026-04-04 20:38:16 +00:00
2026-04-04 20:38:16 +00:00
2026-03-31 21:47:12 +00:00
2026-04-13 04:56:01 +00:00
2026-04-05 08:29:36 +00:00
2026-04-13 04:56:01 +00:00
2026-04-13 04:56:01 +00:00
2026-04-13 04:56:01 +00:00
2026-03-30 13:44:54 +00:00
2026-04-05 09:03:32 +00:00
2026-03-31 21:47:12 +00:00
2026-03-28 00:57:51 +00:00
2026-03-29 18:57:15 +01:00
2026-03-31 21:47:12 +00:00
2026-03-29 18:57:15 +01:00
2026-04-05 04:37:45 +00:00
2026-04-21 11:56:19 +00:00
2026-04-13 04:56:01 +00:00
2026-03-30 13:18:07 +01:00
2026-03-27 23:53:22 +00:00
2026-03-31 21:47:12 +00:00
2026-04-13 04:56:01 +00:00
2026-04-04 20:38:16 +00:00
2026-04-05 21:12:13 +00:00
2026-04-08 11:02:14 +00:00
2026-04-13 04:56:01 +00:00
2026-04-13 04:56:01 +00:00
2026-04-05 21:11:53 +00:00
2026-04-05 07:15:48 +00:00
2026-04-05 08:22:36 +00:00
2026-04-13 04:56:01 +00:00
2026-04-05 07:43:56 +00:00
2026-04-05 08:59:59 +00:00
2026-04-17 18:00:47 +08:00
2026-04-14 02:51:16 +00:00
2026-04-21 01:59:07 +00:00
2026-04-08 11:02:14 +00:00
2026-04-08 11:02:14 +00:00
2026-04-13 04:56:01 +00:00
2026-04-13 04:56:01 +00:00
2026-04-13 04:56:01 +00:00
2026-04-13 04:56:01 +00:00
2026-04-05 08:22:45 +00:00
2026-04-13 04:56:01 +00:00
2026-04-13 04:56:01 +00:00
2026-04-02 16:51:29 +00:00
2026-04-05 17:52:59 +00:00
2026-04-13 04:56:01 +00:00
2026-04-08 11:02:14 +00:00
2026-04-13 04:56:01 +00:00
2026-04-13 04:56:01 +00:00
2026-04-15 13:37:16 +08:00
2026-04-13 04:56:01 +00:00
2026-04-08 11:02:14 +00:00
2026-04-13 04:56:01 +00:00
2026-04-21 06:42:10 +00:00
2026-04-13 04:56:01 +00:00
2026-04-13 04:56:01 +00:00
2026-04-08 11:02:14 +00:00
2026-04-13 04:56:01 +00:00
2026-04-08 11:02:14 +00:00
2026-04-08 11:02:14 +00:00
2026-04-08 11:02:14 +00:00
2026-04-13 04:56:01 +00:00
2026-04-13 04:56:01 +00:00
2026-04-13 21:16:55 +00:00
2026-04-13 04:56:01 +00:00
2026-04-13 04:56:01 +00:00
2026-04-13 04:56:01 +00:00
2026-04-08 11:02:14 +00:00
2026-04-08 11:02:14 +00:00
2026-04-13 04:56:01 +00:00
2026-04-22 00:45:09 +00:00
2026-04-13 04:56:01 +00:00
2026-04-10 20:50:20 +00:00
2026-04-13 04:56:01 +00:00
2026-04-05 09:09:06 +00:00
2026-03-31 07:42:06 +00:00
2026-04-02 23:53:13 +00:00
2026-04-13 04:56:01 +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-13 04:56:01 +00:00
2026-03-29 18:57:15 +01:00
2026-04-01 21:51:14 +00:00
2026-04-05 18:08:09 +00:00
2026-04-02 17:12:54 +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-02 17:08:13 +00:00
2026-04-13 04:56:01 +00:00
2026-04-02 20:48:33 +00:00
2026-04-01 09:23:21 +00:00
2026-04-13 04:56:01 +00:00
2026-04-13 04:56:01 +00:00
2026-04-03 05:56:27 +00:00
2026-04-02 17:09:15 +00:00
2026-04-06 07:55:09 +00:00
2026-04-05 03:26:37 +00:00
2026-03-31 21:47:12 +00:00
2026-04-01 03:30:00 +00:00
2026-03-30 13:18:07 +01:00
2026-03-30 11:47:37 +08:00