fix: meta.request.command を実行した CLI コマンド名でラベルする#13
Merged
Conversation
withRequestContext がハンドラ実装ファイル名から command を導出していたため、 実装ファイルとコマンド名が一致しない登録でラベルがズレていた: - trade-history: --all 分岐の dispatcher が trade-history-all.ts に同居して いるため「trade-history-all」と表示されていた(実際の API 呼び出しは 単一ページの GET /user/spot/trade_history) - tickers-jpy: tickers.ts の tickersJpy を呼ぶため「tickers」と表示されていた router が解決したコマンド名を RuntimeContext.command で handler() まで通し、 ラベルの単一ソースにする。ファイル名由来の導出は ctx なしの直接呼び出し (テスト等)向けフォールバックとして残す。 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013A4pzw6Qda8ho6wSrXUTMX
Collaborator
Author
|
@daikiojm レビューをお願いします 🙏(お手すきのタイミングで大丈夫です) この PR についてCLI 利用者からの報告を受けて調査・修正した軽微なバグフィックスです。 報告された事象
原因
修正内容(5 ファイル、+57/-5)
検証
レビューポイント
なお本修正は semver 的には patch 相当のため、マージ後は次のリリースタイミングで |
daikiojm
approved these changes
Jul 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
withRequestContext がハンドラ実装ファイル名から command を導出していたため、 実装ファイルとコマンド名が一致しない登録でラベルがズレていた:
router が解決したコマンド名を RuntimeContext.command で handler() まで通し、 ラベルの単一ソースにする。ファイル名由来の導出は ctx なしの直接呼び出し
(テスト等)向けフォールバックとして残す。
Claude-Session: https://claude.ai/code/session_013A4pzw6Qda8ho6wSrXUTMX
概要
チェックリスト
npx vitest runが greennpx tsc --noEmitが greennpx biome check cli/が greencli/__tests__/chaos/conventions/)・1 ファイル 100 行目安を満たす.claude/rules/trading-safety.mdを遵守)