You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
kimi-code v0.38.0 (latest), macOS arm64, installed via official install script
Invocation: headless print mode (-p)
Reproduction
kimi --agent dev -p "hi"
Also crashes identically with a deliberately nonexistent profile name (--agent nonexistent-probe), so the crash is not dependent on profile content or discovery success.
Expected
Session starts with the named agent profile, or a clean "profile not found" error.
Actual
Hard crash before any session activity:
Error: Agent event 'agent.activity.updated' has no active lifecycle context
at EventBusService.publish (main.cjs:255710:112)
at AgentEventBusView.publish (main.cjs:255760:13)
at EventDispatcherService.executeEvent (main.cjs:256279:56)
at EventDispatcherService.runDispatch (main.cjs:256224:9)
at EventDispatcherService.dispatch (main.cjs:256194:10)
at AgentActivityView.publish (main.cjs:273146:20)
Notes / workaround
--agent-file <path> works fine in print mode — the profile loads and is honored (verified with a project-local profile; the agent correctly self-reports its profile name). So the profile loading path is healthy; only the --agent <name> discovery/dispatch path crashes.
Agent profile discovery dirs observed from the binary: project .kimi-code/agents / .agents/agents, user .agents/agents. (As an aside: it would be helpful if the docs page for agents/sub-agents listed these explicitly.)
Environment
-p)Reproduction
kimi --agent dev -p "hi"Also crashes identically with a deliberately nonexistent profile name (
--agent nonexistent-probe), so the crash is not dependent on profile content or discovery success.Expected
Session starts with the named agent profile, or a clean "profile not found" error.
Actual
Hard crash before any session activity:
Notes / workaround
--agent-file <path>works fine in print mode — the profile loads and is honored (verified with a project-local profile; the agent correctly self-reports its profile name). So the profile loading path is healthy; only the--agent <name>discovery/dispatch path crashes.--agent-fileignored in TUI but works in-p). Together these suggest the custom-profile wiring differs between TUI and headless in two opposite ways..kimi-code/agents/.agents/agents, user.agents/agents. (As an aside: it would be helpful if the docs page for agents/sub-agents listed these explicitly.)