fix(wiki): guide shortcut source recovery - #2350
Conversation
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2350 +/- ##
=======================================
Coverage 76.35% 76.36%
=======================================
Files 1043 1043
Lines 114771 114791 +20
=======================================
+ Hits 87638 87656 +18
- Misses 20385 20387 +2
Partials 6748 6748 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Summary
wiki +node-createfailures only when a shortcut create returns API code131002origin_node_tokenandobj_typeRoot cause
Wiki does not support creating a shortcut whose source is another shortcut. The upstream API reports the generic invalid-parameter code
131002, so agents could retry the same deterministic failure without knowing how to resolve the underlying origin node.Behavior
The extra
get_nodediagnostic runs only after a shortcut create fails with131002. If the source cannot be inspected or is not another shortcut, the CLI returns the original error unchanged.Validation
go test ./shortcuts/wiki -run 'TestRunWikiNodeCreate' -count=1make fmt-check131002, stopped retrying, and returned the real origin token/type