server: workflow respond endpoint omits fields on abort/skip branches while TS types promise the full session state
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 78/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- python, typescript
調査の方向性
server/routes/workflow.py:591-596、601-606、616-621にある3つの応答分岐を読み、それぞれのpayloadを標準的なセッション構造およびweb/src/api/types.ts:96-118のWorkflowSessionStateと比較してください。web/srcでWorkflowRunnerModalが応答をどのように使用するか確認してください。各中断またはスキップの分岐が一貫したセッション状態を返し、関連するエンドポイントのテストが通れば完了です。
索引モデルが issue の本文から書いたものです。
説明
Problem
Three response branches of POST /api/workflow/respond return only {session_id, status, final_message, steps} — omitting current_index, ask_prompt, ask_message, notify_message, notice_message, last_output, filename, pattern (server/routes/workflow.py:591-596, 601-606, 616-621):
- "no" on a post-launch ask (returns
status: "completed") - "no" abort pre-launch (
status: "aborted") - "skip" of the final pre step (
status: "completed")
The client declares the full WorkflowSessionState (web/src/api/types.ts:96-118) and WorkflowRunnerModal does setSession(next) then reads session.current_index in ~15 render paths (lines 315, 366, 380, 388, 466, 559…). Terminal status hides the gates today, so the blast radius is latent — but the step list loses its "current step" anchor, and any future read (e.g. last_output on the completed branch) silently gets undefined.
Suggested fix
Return the full standard shape from those three branches (they already have every field available); or narrow the TS type to a union with a terminal variant. The full-shape option is the smaller, safer change.
- 主要言語
- Python
- スター
- 1
- フォーク
- 1
- 平均マージ
- 4時間 46分
- マージ済み PR(30日)
- 55
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
falbany/ProFiles のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
falbany/ProFiles#187 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug frontend
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
bug frontend
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信
-
bug frontend
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
bug frontend
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
falbany/ProFiles の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
ip-tools/patzilla#219 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
EPSSClient commits to its SQLite cache once per score: a 100-CVE bulk fetch makes 101 disk flushesオープンpriority:p3 technical-debt
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
jimmy058910/jmo-security-repo#1673 ·
メンテナーはふだん 1 日以内に返信
-
enhancement ready
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
-
integration: frontier_silicon
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
home-assistant/core#193176 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
task create and task update take --body-file and --stdin対応中かも @JuanBarriosS が今日担当しました。 オープンcli enhancement good first issue help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 92/100
pyrite-wiki/pyrite#1687 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信