Files
PaperClipAI/server/src/__tests__
Devin FoleyandPaperclip 1c21edbc9e Preserve SSH conversations and current-run credential copyback
Claude CLI now retains only account-scoped conversation state between in-place SSH turns and removes credentials on every exit path. Session persistence keeps normalized remote identity and opaque conversation references. The shared directory lifecycle also preserves the existing Codex paths and file policy.

A retained ACP managed home can rebind copyback and logging to each current run before remote environment values replace local home paths. Codex refresh tokens return to the current account projection instead of recreating a retired home.

Validation: 422 tests across eight adapter/lifecycle suites; four final multi-turn regressions; adapter-utils, Claude, Codex, and server typechecks. New regressions reproduced both review failures before the fixes. pnpm verify requests broader required CI coverage (exit 2).

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-11-12 21:04:01 -08:00
..
…

Server Tests

Server tests that need a real PostgreSQL process must use ./helpers/embedded-postgres.ts instead of constructing embedded-postgres directly.

The shared helper creates a throwaway data directory and a reserved-safe loopback port for each test database. This protects the live Paperclip control-plane Postgres from server vitest runs; see PAP-2033 for the incident that introduced this guard.