docs: fold useful simplification RFCs from pr 74

This commit is contained in:
Tianyi Cui
2026-06-20 19:23:05 +08:00
parent ea3f138ae9
commit 552612622c
8 changed files with 166 additions and 3 deletions

View File

@@ -203,6 +203,10 @@ interface SessionRecord {
* others are no-ops (settle-exactly-once).
*/
export function apply(ctx: Context, config: AcpConfig): void {
// TODO(double-default): these literals duplicate the Config schema defaults
// (`agentName`/`agentVersion` `.default(...)` above). The Loader applies the
// schema before apply() runs, so the `??` only fires for direct-apply unit
// tests. Pick one home for the default to avoid drift.
const agentName = config.agentName ?? 'deepseek-harness-acp'
const agentVersion = config.agentVersion ?? '0.0.1'