Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Workspace attach: post a sanitized session attach report to the backend when the outcome settles

Aperta
#1,309 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

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

Direzione di ricerca

Inizia nel percorso attach di engine-overlay.ts e trova i pattern esistenti per la deduplicazione dei toast e per il client API. Segui il flag del workspace, la directory associata e il controllo delle credenziali prima di aggiungere il POST fire-and-forget a /datamates/{id}/attach-reports. Il lavoro è completato quando gli attach riusciti e falliti conclusi inviano un singolo report sanificato per firma dell'annuncio e gli errori vengono registrati una sola volta.

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

Descrizione

Problem

When a workspace attach settles, the CLI is the only place that knows what the session actually received: which declared tool keys the engine served, which it could not and why (the engine's unfulfilled-keys report), the engine and CLI versions, whether a VS Code bridge was live — or that the engine was missing, too old, or failed to start. None of that reaches the backend, so the workspace page cannot show "your last session received …" or whether a linked project is ready.

Proposal

After the outcome settles in the attach path (engine-overlay.ts), post one session attach report to POST /datamates/{id}/attach-reports through the existing API client, fire-and-forget with a bounded timeout, once per announcement signature (the same dedupe the toast uses). Failed outcomes post too.

  • Report: outcome kind; the binding identity the server row already holds (git remote, else project path); CLI version; engine version (null when missing); bridge state; declared and delivered keys; the engine's report; a timestamp.
  • Sanitize before sending. Engine detail strings are raw error text and can contain paths or hosts. Reduce each to {code, command?} — code from recognised patterns (ENOENT, EACCES, ETIMEDOUT, ECONNREFUSED, invalid-url, else other), command = the basename of the spawned command for spawn failures, nothing else. The full text stays local.
  • Gated like the rest of the overlay (workspace flag, bound directory, configured credentials); never blocks the turn; a failed post logs once and never surfaces to the user.

Out of scope

Rendering the report anywhere; the backend store (separate change).

Lingua principale
TypeScript
Stelle
805
Fork
122
Merge medio
2g 10h
PR unite (30g)
63

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

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 AltimateAI/altimate-code

Tutte le issue di AltimateAI/altimate-code

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.