picoclaw/pkg/config
SiYue-ZO 921d753cc0 fix: wire dm_scope into runtime session isolation dimensions
The dm_scope field was stored in config but never translated into the
dimensions array that the routing layer actually consumes. This meant
changing the session isolation scope in the UI had no effect at runtime.

Add ApplyDmScope() to SessionConfig which maps the user-facing dm_scope
values (per-channel-peer, per-channel, per-peer, global) to the
corresponding dimension arrays. Call it in LoadConfig post-processing
and in both the PATCH and PUT API handlers.

Includes table-driven tests covering all dm_scope values and the
precedence rule (explicit dimensions > derived from dm_scope).
2026-06-09 11:03:33 +08:00
..
config.go fix: wire dm_scope into runtime session isolation dimensions 2026-06-09 11:03:33 +08:00
config_channel.go feat: support streaming (#2892) 2026-05-19 16:38:47 +08:00
config_channel_test.go feat: support streaming (#2892) 2026-05-19 16:38:47 +08:00
config_old.go refactor(config): make config.Channel to multiple instance support 2026-04-13 22:21:21 +08:00
config_struct.go feat(web): support list editing for channel array fields (#2595) 2026-04-21 16:04:28 +08:00
config_struct_test.go refactor skills registries and add GitHub-backed skill discovery (#2442) 2026-04-14 15:14:16 +08:00
config_test.go fix: wire dm_scope into runtime session isolation dimensions 2026-06-09 11:03:33 +08:00
defaults.go Add native Kagi web search provider 2026-06-07 16:27:50 +02:00
diagnostics.go fix(config): show precise malformed config diagnostics (#2415) 2026-04-27 09:45:52 +08:00
envkeys.go feat(host): complete launcher and gateway multi-host binding support 2026-04-14 14:04:36 +08:00
events.go feat(events): add configurable runtime event logging 2026-04-26 17:41:00 +08:00
events_test.go feat(events): add configurable runtime event logging 2026-04-26 17:41:00 +08:00
example_security_usage.go Add native Kagi web search provider 2026-06-07 16:27:50 +02:00
gateway.go feat(host): complete launcher and gateway multi-host binding support 2026-04-14 14:04:36 +08:00
gateway_host_env_test.go feat(host): complete launcher and gateway multi-host binding support 2026-04-14 14:04:36 +08:00
legacy_bindings.go fix(session): restore thread and legacy compatibility 2026-04-08 00:32:53 +08:00
mcp_transport.go fix(mcp): support streamable HTTP alias and request-response mode 2026-05-07 19:24:02 +02:00
migration.go feat: agent self evolution (#2847) 2026-05-11 16:13:27 +08:00
migration_integration_test.go refactor skills registries and add GitHub-backed skill discovery (#2442) 2026-04-14 15:14:16 +08:00
migration_test.go refactor(config): make config.Channel to multiple instance support 2026-04-13 22:21:21 +08:00
model_config_test.go feat: support streaming (#2892) 2026-05-19 16:38:47 +08:00
multikey_test.go feat: support streaming (#2892) 2026-05-19 16:38:47 +08:00
security.go fix(config): show precise malformed config diagnostics (#2415) 2026-04-27 09:45:52 +08:00
security_integration_test.go Add native Kagi web search provider 2026-06-07 16:27:50 +02:00
security_test.go refactor(config): make config.Channel to multiple instance support 2026-04-13 22:21:21 +08:00
turn_profile.go feat: add request-scoped context policies (#2914) 2026-05-22 10:06:40 +08:00
version.go feat:Modify the location where version is obtained, and insert version information into the context (#1300) 2026-03-10 17:42:05 +08:00
version_test.go feat:Modify the location where version is obtained, and insert version information into the context (#1300) 2026-03-10 17:42:05 +08:00