test(server): give the test session the interface's persistence signature

TestAgentSession.describePersistence had no return type, so TypeScript
inferred a codex-only handle with a UUID session id. The restarted-child test
from 80879eaf7 assigns the resumed AgentPersistenceHandle to it and failed to
typecheck (TS2322). The test double now declares the AgentSession signature,
which also clears the older plugin-provider sites with the same error.
This commit is contained in:
Mohamed Boudra
2026-11-10 13:54:12 +01:00
parent ecd0dd083e
commit 9a2236dac3
@@ -452,7 +452,7 @@ class TestAgentSession implements AgentSession {
async respondToPermission(): Promise<void> {}
describePersistence() {
describePersistence(): AgentPersistenceHandle | null {
return {
provider: this.provider,
sessionId: this.id,