Pi adapter fails to retain transcripts when SessionManager.getBranch() returns a Promise

Open
#7,215 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
63/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
python
Domain
ai, backend

Research direction

Start by tracing the registered agent_end handler through readPiEntries and agentEnd, then inspect how onTranscript submits the write-back. Update the branch handling to support the Promise-returning host while preserving synchronous hosts and the event fallback; done means full-session write-back works and completing a turn no longer raises the reported error.

Written by the indexing model from the issue text.

Description

integration:coding-agents

Using the published coding-agents integration 0.9.1 with an omo/Senpi host, completing a turn raises “SessionManager.getBranch() returns a Promise (session bodies stay on disk): await it.” The stack goes through readPiEntries and agentEnd. The registered agent_end handler passes getBranch() directly to a synchronous iterator, before onTranscript can submit the write-back. Current main has the same call.

Expected: await the branch before normalizing its entries, preserving full-session write-back, support for synchronous Pi hosts, and the existing event fallback on hosts without getBranch.

Dominant language
Python
Stars
45.2k
Forks
5.9k
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from vectorize-io/hindsight

All issues in vectorize-io/hindsight

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.