kimi-code/packages
qer fe667d7c2e
fix(reload): re-inject plugin session-start reminder after /reload (#1086)
* fix(reload): re-inject plugin session-start reminder after /reload

Reload reloaded plugins and resumed the session, but the model kept seeing the stale plugin session-start reminder from before the reload, so plugin skill changes only took effect in a fresh session.

Append a fresh plugin_session_start reminder to the main agent after reload, gated on a new forcePluginSessionStartReminder flag that only the explicit /reload command sets, so config and experiment toggles that reuse the reload RPC do not spam the transcript.

* fix(reload): keep reload result fresh and neutralize stale plugin reminder

Append the plugin session-start reminder before constructing ResumeSessionResult so SDK callers reading getResumeState() see the refreshed plugin context instead of a pre-reload snapshot.

When a plugin with a prior plugin_session_start reminder is disabled or removed, append a neutralizing reminder so the model does not keep following stale plugin instructions.

* fix(reload): neutralize stale plugin reminder after compaction

A full compaction folds the discrete plugin_session_start reminder into a compaction_summary, so the origin-only scan no longer detects it. Also treat a compaction_summary in history as a signal to neutralize, so disabling or removing a plugin after compaction still emits a superseding 'no active plugin session starts' reminder.

* fix(reload): thread plugin reminder option through KimiHarness.reloadSession

KimiHarness.reloadSession is a public SDK entry point; forward forcePluginSessionStartReminder to both the active-session and RPC reload paths so SDK callers using the harness can opt into the refreshed plugin reminder too.
2026-06-25 23:16:55 +08:00
..
acp-adapter ci: release packages (#911) 2026-06-22 21:39:21 +08:00
agent-core fix(reload): re-inject plugin session-start reminder after /reload (#1086) 2026-06-25 23:16:55 +08:00
kaos perf(kaos): optimize large file reads (#971) 2026-06-23 15:07:40 +08:00
kimi-migration-legacy feat(web): introduce Kimi web app and daemon gateway (#625) 2026-06-17 20:53:46 +08:00
kosong ci: release packages (#803) 2026-06-16 21:23:58 +08:00
migration-legacy ci: release packages (#911) 2026-06-22 21:39:21 +08:00
node-sdk fix(reload): re-inject plugin session-start reminder after /reload (#1086) 2026-06-25 23:16:55 +08:00
oauth fix: classify OAuth token refresh errors by cause (#838) 2026-06-17 18:34:42 +08:00
protocol feat: add shell mode (!) to the CLI (#1079) 2026-06-25 21:24:53 +08:00
server feat(server): make --host opt-in for LAN binding (#1105) 2026-06-25 22:13:13 +08:00
server-e2e fix(web): stop auto-dismissing pending questions and approvals on a timeout (#1070) 2026-06-24 19:15:06 +08:00
telemetry feat: rework permission decision policies (#26) 2026-05-27 20:07:24 +08:00