instar 1.2.44 → 1.2.46

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../src/commands/server.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAkQH,UAAU,YAAY;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;2DACuD;IACvD,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAiqDD,wBAAsB,WAAW,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CAglLtE;AAED,wBAAsB,UAAU,CAAC,OAAO,EAAE;IAAE,GAAG,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAsDzE;AAED;;;;;;;;;;;GAWG;AACH,wBAAsB,aAAa,CAAC,OAAO,EAAE;IAAE,GAAG,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAuD5E"}
1
+ {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../src/commands/server.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAkQH,UAAU,YAAY;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;2DACuD;IACvD,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAiqDD,wBAAsB,WAAW,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CA6lLtE;AAED,wBAAsB,UAAU,CAAC,OAAO,EAAE;IAAE,GAAG,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAsDzE;AAED;;;;;;;;;;;GAWG;AACH,wBAAsB,aAAa,CAAC,OAAO,EAAE;IAAE,GAAG,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAuD5E"}
@@ -2152,7 +2152,20 @@ export async function startServer(options) {
2152
2152
  // backwards-compat; INSTAR_FRAMEWORK=codex-cli routes through Codex.
2153
2153
  try {
2154
2154
  const { buildIntelligenceProvider, frameworkFromEnv } = await import('../core/intelligenceProviderFactory.js');
2155
- const framework = frameworkFromEnv() ?? 'claude-code';
2155
+ // _defaultFramework is what the Telegram spawn path uses for any topic
2156
+ // without an explicit per-topic override (resolveTopicFramework returns
2157
+ // it). It MUST come from the agent's resolved runtime framework
2158
+ // (config.sessions.framework — derived at load from
2159
+ // sessions.framework | enabledFrameworks[0] | INSTAR_FRAMEWORK), NOT from
2160
+ // INSTAR_FRAMEWORK alone. Before this fix it was `frameworkFromEnv() ??
2161
+ // 'claude-code'`, so a codex-cli-only agent that didn't set the
2162
+ // INSTAR_FRAMEWORK env var (the common case — the wizard sets
2163
+ // enabledFrameworks, not the env) silently defaulted to claude-code and
2164
+ // spawned a CLAUDE session on every Telegram message. The fresh-spawn
2165
+ // path (spawnInteractiveSession's internal resolution) already read
2166
+ // config.framework correctly; this aligns the Telegram path with it so
2167
+ // both doors agree. See specs/dev-infrastructure/framework-spawn-portability.md.
2168
+ const framework = config.sessions?.framework ?? frameworkFromEnv() ?? 'claude-code';
2156
2169
  resolvedFramework = framework;
2157
2170
  _defaultFramework = framework;
2158
2171
  _topicFrameworks = config.topicFrameworks ?? {};