[FEATURE]: Filter session lists by last execution outcome

オープン
#65,386 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
48/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
typescript
領域
api

調査の方向性

Start from packages/schema/src/session.ts (lines 32-109) to see Session.Info.outcome and the existing list filter/cursor shapes, then find where session.list applies the project/directory and archive filters and where the pagination cursor is built. Done means an outcome filter applied before pagination, combined with the existing filters, retained in cursors, and treating sessions with no completed execution as non-matching, covered by tests for succeeded, failed and interrupted.

索引モデルが issue の本文から書いたものです。

説明

area/sdk-api type/feature version/v2
Feature hasn't been suggested before.
  • I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request

Please let API clients filter session lists by the last completed execution outcome: succeeded, failed, or interrupted.

After running several automated tasks, a client needs to find the sessions that failed. Session.Info already returns outcome, but session.list cannot filter by it. The workaround is to fetch every page and filter locally; filtering just one page can hide older failures.

Apply the filter before pagination, combine it with existing project/directory and archive filters, and retain it in pagination cursors. Its meaning should match the existing field: the outcome recorded at time.idle, not whether the session is currently running. Sessions without a completed execution would not match a requested outcome.

This is a list/query enhancement; it would not retry or resume sessions. Current contracts: Session.Info and list filters. Related #63518 concerns CLI archive filtering, rather than execution outcomes.

主要言語
TypeScript
スター
227k
フォーク
30.7k
平均マージ
3時間 57分
マージ済み PR(30日)
484

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

anomalyco/opencode のほかの issue

anomalyco/opencode の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。