refactor(agent): Pi 会话运行时 - 接入原生 Agent 与 Skills 工具链

This commit is contained in:
ddcat666 committed 2026-09-29 08:21:11 +08:00
1 parent f9b8c5a43e
commit 387d3562ad
69 files changed
+11460 -207

No files matched your search

@@ -0,0 +1,18 @@
package app
import (
"context"
"testing"
)
func TestStartCloudAgentPiDoesNotRestartAnActiveRunner(t *testing.T) {
ctx, cancel := context.WithCancel(context.Background())
defer cancel()
s := &Service{piRunners: map[string]context.CancelFunc{"run-a": cancel}}
s.startCloudAgentPi("user-a", "run-a")
if err := ctx.Err(); err != nil {
t.Fatalf("duplicate start cancelled the active Pi runner: %v", err)
}
}