Commit Graph

15 Commits

Author SHA1 Message Date
Connor Peet
da5fb11b3b agentHost: add session-specific metadata
Adds a SQLite DB for session-specific metadata. Stores edits in there.
It can _almost_ restore edits, but I still need to make undoStops be
similarly persisted. That is a project for later this evening.
2026-03-26 15:46:46 -07:00
Connor Peet
29d9808be8 agentHost: ui side for queued messages (#304954)
* agentHost: initial queuing/steering data flows

* agentHost: ui side for queued messages

Steering messages still don't quite work yet, I need to hook up some more stuff in the CLI for that I believe.

* comments

* rm dead code
2026-03-26 16:45:15 +00:00
Connor Peet
ff895d1fcd agentHost: sync fixed tool call ordering
Adopts https://github.com/microsoft/agent-host-protocol/pull/20
2026-03-24 16:44:03 -07:00
Rob Lourens
a2e920987e Fix loading sessions that were created by a previous remote agent host instance (#304344)
* Fix loading sessions that were created by a previous instance of the server

Co-authored-by: Copilot <copilot@github.com>

* Add handleRestoreSession to agentHostMain side effects

Wire up the handleRestoreSession method in the utility process
agent host entry point, delegating to AgentService which forwards
to AgentSideEffects. This was missing after the interface was
updated to require session restore support.

* Address Copilot review: wrap backend errors, use Cancelled for interrupted turns

- Wrap agent.listSessions() and agent.getSessionMessages() calls in
  try/catch so raw backend errors become ProtocolErrors instead of
  leaking stack traces to clients.
- Use TurnState.Cancelled instead of TurnState.Complete for
  interrupted/dangling turns during session restoration.
- Update test assertions to match new interrupted turn state.

(Written by Copilot)

---------

Co-authored-by: Copilot <copilot@github.com>
2026-03-24 04:41:48 +00:00
Connor Peet
d5aa1c409e fix merge 2026-03-23 16:19:45 -07:00
Connor Peet
2bdd783838 agentHost: data passing for edits 2026-03-22 11:28:38 -07:00
Connor Peet
da0cdcf861 Merge remote-tracking branch 'origin/main' into connor4312/ahp-auth 2026-03-18 14:30:16 -07:00
Connor Peet
c5fc3c07b3 tests 2026-03-18 14:29:03 -07:00
Connor Peet
60d6da9614 agentHost: upstream reducer logic from AHP
Goes with https://github.com/microsoft/agent-host-protocol/pull/11
2026-03-18 13:09:11 -07:00
Connor Peet
2418b24d9f agentHost: migrate to use protocol types
- Migrates to use AHP types that are synced via `npx tsx scripts/sync-agent-host-protocol.ts`
- One big churn was migrating out of URIs as rich objects in the protocol.
  We can't really shove our own `$mid`-type objects in there. I also explored doing a
  generated translation layer but I had trouble getting one I was happy with.
- This tightens up some type safety in general and fixes some areas where vscode had
  silently/sloppily diverged from the protocol types.
2026-03-17 20:10:45 -07:00
Connor Peet
9fbb42c1e8 fix tests 2026-03-17 11:14:07 -07:00
Connor Peet
5d5d0763fb fix build 2026-03-16 19:05:09 -07:00
Rob Lourens
97ef00da2a Align browseDirectory errors with filesystem semantics (Written by Copilot) 2026-03-14 12:41:47 -07:00
Connor Peet
53372c0e9c reduce mock duplication 2026-03-12 14:49:13 -07:00
Connor Peet
c0fdec61a3 reduce duplication in side effecting code 2026-03-12 14:33:13 -07:00