mirror of
https://github.com/larksuite/cli.git
synced 2026-07-06 16:18:05 +08:00
In buildFanoutResponse, when every fanout query fails AND the first failure has no Lark API code (i.e. transport, parse, panic, or context-cancel), the returned ExitError was carrying an empty Hint. This is the only output.ErrWithHint call in shortcuts/ that ships an empty hint. AGENTS.md states: "every error message you write will be parsed by an AI to decide its next action. Make errors structured, actionable, and specific." An empty hint gives the agent nothing to do. Populate the hint with the actionable next step for this branch — retry, and if it persists, narrow --queries to a single term to isolate the failing input. The companion test exercises the no-code path and asserts the hint is non-empty and mentions "retry". Co-authored-by: Wang-Yeah623 <Wang-Yeah623@users.noreply.github.com>