[FEATURE]: Filter session lists by last execution outcome

Aperta
#65,386 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
48/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
typescript
Ambito
api

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
TypeScript
Stelle
227k
Fork
30.7k
Merge medio
3h 57m
PR unite (30g)
484

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di anomalyco/opencode

Tutte le issue di anomalyco/opencode

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.