3 Commits
Author SHA1 Message Date
qbot e07f37fbb4 chore: gitignore runtime sqlite db and local config backups 2026-10-22 18:54:58 +08:00
qbot 7ba5d75f3a test: isolate $HOME per test so media fallback stops writing ~/agenthub-media
test_channels_e2e / test_relay_no_stack / test_session_manager drive prompt()
with agents that lack cwd_whitelist, so the ~/agenthub-media fallback created
directories in the real home directory on every run.
2026-10-22 18:54:58 +08:00
qbot 74d99f8705 fix(media): derive agent workspace root from glob-free prefix of cwd_whitelist
cwd_whitelist entries are fnmatch patterns (`~/workspace/*`), but
_agent_cwd() only ran expanduser() on the first entry, so media_in/ and the
outbound media sentinel used a literal `*` directory
(`~/workspace/*/media_in`). _glob_root() now strips the glob segment.

Also covers sending files prematurely: sentinel scan of the literal dir
never saw agent output.
2026-10-22 18:54:58 +08:00