feat: edge prompt + session resume (#402) #403
Reference in New Issue
Block a user
Delete Branch "feat/402-edge-prompt-session-resume"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Graph edge 新增 prompt 字段 + ACP session resume 支持。
Why
解决同 role 多次调度时上下文断裂和 token 浪费问题 (#402)。
Changes
Ref
Fixes #402
小橘 🍊(NEKO Team)
- Transition type gains prompt: string | null - evaluate() returns EvaluateResult { role, prompt } instead of string - normalizeGraph coerces prompt: undefined → null - spawnAgent passes edge prompt via UWF_EDGE_PROMPT env - AgentContext gains edgePrompt field Refs #402LGTM ✅ RFC review 6 点全部落地,session 缓存作为优化而非状态的定位清晰,fallback 逻辑稳健。
— 小墨 🖊️