Commit graph

12 commits

Author SHA1 Message Date
bba47c28c4 rm 2026-03-08 15:51:12 -07:00
5c389efcf9 Make memory runtime-native for companion chat
Replace the old project-scoped file memory plumbing with runtime-native conversational memory and remove obsolete pi-memory-md shipping/wiring.

Co-authored-by: Codex <noreply@openai.com>
2026-03-08 15:24:52 -07:00
9765576c0a fix: report unavailable memory repo status
Treat git status failures as unavailable instead of clean in gateway memory status.

Co-authored-by: Codex <noreply@openai.com>
2026-03-08 12:57:36 -07:00
e0801dedb0 fix: address memory review findings
Remove shell-based memory tree inspection and pre-sync before memory pushes.
Switch sync update detection to git HEAD comparisons instead of localized output parsing.

Co-authored-by: Codex <noreply@openai.com>
2026-03-08 12:56:39 -07:00
2886855706 feat: add first-class memory management
Expose gateway memory APIs for status, init, files, search, and sync.
Align pi-memory-md with project-scoped, local-first memory behavior.

Co-authored-by: Codex <noreply@openai.com>
2026-03-08 12:47:38 -07:00
973baf58e1 refactor: clean up no-output timeout architecture
- Remove onKillHandle from BashOperations interface (implementation detail leak)
- Use AbortController + combineAbortSignals to kill from tool level instead
- Extract shared buildOutput() to deduplicate .then()/.catch() paths
- Cleaner separation: BashOperations stays unchanged, timeouts are tool-level

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-07 19:58:49 -08:00
479124d945 fix: add default timeout and no-output timeout to bash tool
Bash tool had no default timeout, so commands like `npx serve` would
block the agent loop forever. This caused the randomtrends sandbox
thread to die - the LLM started a dev server, the shell never exited,
and the entire session hung with no way to recover.

Two safeguards:
- Default 120s timeout when LLM does not specify one
- 30s no-output timeout that kills processes that go silent

Both are configurable via BashToolOptions and can be disabled by
setting to 0. The LLM can still pass explicit higher timeouts for
long builds.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-07 19:28:50 -08:00
357ec23c6b chore: remove unused pi web-ui package
Delete the dormant companion-os web-ui workspace and clean up the workspace, build, lint, and lockfile references that still pointed at it.

Fixes #253

Co-authored-by: Codex <noreply@openai.com>
2026-03-07 17:12:20 -08:00
c0bba5c38f refactor: centralize gateway module and address review fixes
Move the gateway runtime files into a dedicated core/gateway module and fix follow-up issues in session deletion, history import batching, message IDs, and legacy thread parsing.

Fixes #253

Co-authored-by: Codex <noreply@openai.com>
2026-03-07 16:53:36 -08:00
753cb935f1 feat: persist chat threads and recover gateway sessions
Add a Convex-backed durable chat layer for companion threads, recover gateway sessions from persisted Pi session files after eviction, and start splitting gateway runtime internals into focused modules.

Co-authored-by: Codex <noreply@openai.com>
2026-03-07 16:32:53 -08:00
8ecd55a522 add logging 2026-03-07 15:13:51 -08:00
0250f72976 move pi-mono into companion-cloud as apps/companion-os
- Copy all pi-mono source into apps/companion-os/
- Update Dockerfile to COPY pre-built binary instead of downloading from GitHub Releases
- Update deploy-staging.yml to build pi from source (bun compile) before Docker build
- Add apps/companion-os/** to path triggers
- No more cross-repo dispatch needed

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-07 09:22:50 -08:00