mirror of
https://github.com/qwibitai/nanoclaw.git
synced 2026-07-06 18:52:03 +08:00
bd0962fd97
When a channel skill doesn't fully apply, surface the prose beside the directive that bounced as the operator's failure hint instead of a generic "couldn't finish" message. - skill-apply.ts: AgentTask gains hint? (default = trimmed prose; optional on-fail:<token> attr narrows it to the prose LINE diagnosing the failure, falling back to full prose when the token has no matching line so a stripped fence never leaks a bare token). New exported firstFailureHint(res) returns the first bounce's heading as a concise headline + its hint. - run-channel-skill.ts: the !fullyApplied path threads firstFailureHint into fail(`<channel>-install`, headline, hint) so runner.ts dims the hint and forwards it to offerClaudeOnFailure. fail is now injectable for tests. - claude-handoff.ts: repoint buildHandoffPrompt's stale setup/channels/<ch>.ts reference to the channel's SKILL.md (the bespoke files are deleted). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>