Files
CE Lin 1ce59d484a fix(context): honor CLAUDE_MEM_CONTEXT_OBSERVATION_TYPES on session-start injection (#3410)
CLAUDE_MEM_CONTEXT_OBSERVATION_TYPES and _CONCEPTS are documented and
persisted by SettingsRoutes, but never reached the injection query: the two
keys were missing from SettingsDefaultsManager.DEFAULTS so loadFromFile
dropped them, and loadContextConfig built both sets from the active mode file
alone. A user narrowing their injected context got the mode's full list.

Both keys are now declared with an empty default, and loadContextConfig parses
them as comma-separated lists, tolerating whitespace and empty entries, and
falls back to the mode-wide lists when empty. Five tests cover both halves of
the defect.

Author: @ChingEnLin
Refs: #3608 (plan-20 Project Identity & Injection Scope)
Closes: #3409

Verified on merge of origin/main (c340932c2): bun test tests -> 3721 pass,
28 skip, 2 fail (both pre-existing on main: field-deadline-wire real-network
test and plugin-distribution npm-tarball test that needs a build). tsc
--noEmit clean.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015w89Sfxy7rZK9xDWixDPv7
2026-09-12 10:11:58 -07:00
..