Skip to content

Split session reload semantics#835

Open
HabibPro1999 wants to merge 1 commit intocan1357:mainfrom
HabibPro1999:feat/reload-semantics
Open

Split session reload semantics#835
HabibPro1999 wants to merge 1 commit intocan1357:mainfrom
HabibPro1999:feat/reload-semantics

Conversation

@HabibPro1999
Copy link
Copy Markdown
Contributor

@HabibPro1999 HabibPro1999 commented Apr 27, 2026

What

  • Add explicit AgentSession.reloadSessionFile() for current session-file reload semantics.
  • Add AgentSession.reloadRuntimeResources() as the separated future runtime-resource reload API placeholder.
  • Keep AgentSession.reload() as a deprecated alias to session-file reload.
  • Update internal extension command contexts, headless modes, ACP/RPC callsites, and tests to use the explicit session-file API.
  • Update the coding-agent changelog.

Why

OMP currently uses reload() for session-file reloads, while Pi-style /reload means runtime resources/config/extensions/tools. This PR separates those concepts before implementing global runtime reload behavior.

Part of the Pi runtime/agentic harness migration stack.

Testing

  • bun test packages/coding-agent/test/agent-session-openai-responses-replay.test.ts packages/coding-agent/test/sdk-session-isolation.test.ts
  • bunx biome check on all files changed by this PR
  • Earlier pre-rebase checks: bun run check:ts and PATH="$HOME/.cargo/bin:$PATH" bun run check

Known caveat after rebasing onto latest main: full bun run check:ts is currently blocked by unrelated Biome formatting/import-order issues already present in origin/main files not touched by this PR (line-hash.ts, tools/renderers.ts, tools.test.ts, tools/search-renderer.test.ts).


  • bun check passes (blocked after latest main rebase by unrelated upstream Biome issues listed above)
  • Tested locally
  • CHANGELOG updated (if user-facing)

@HabibPro1999 HabibPro1999 force-pushed the feat/reload-semantics branch from 4ad6738 to 3e5ce7e Compare April 28, 2026 09:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant