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

A task-ground comment wrongly says a branch carries only HEAD

Aperta
#1,455 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à
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
78/100
Tipo di issue
Documentazione
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
go
Ambito
cli

Direzione di ricerca

Start with the comment at internal/session/task_run.go:8308 and snapshotRung in internal/session/groundladder.go:789, then run the existing grounded-task fixture with dirty tracked and untracked files. Update the comment and manual to explain the repository ground and the later landing step, and add the stated e2e or structural protection while recording the assumption in invalidates.

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

Descrizione

area:session bug hygiene sev:papercut

Found on santos/dev2 at 008363c98 (#1410). On dev@debffabf6 too.

What happened

The source comment WHAT THE BRANCH CARRIES IS HEAD AND NOTHING ELSE is false for repository grounds. snapshotRung carries uncommitted and untracked files into the task copy. The stale comment led a reviewer to deny behavior the manual correctly describes.

Replication

Deterministic (no model). Read cutTaskWorktree's comment, then run the existing grounded-task fixture with a modified tracked file and an untracked file before carving. Inspect the copy: both are present. git grep -n 'WHAT THE BRANCH CARRIES' origin/dev -- internal/session/task_run.go finds the same comment on dev.

Where

internal/session/task_run.go:8308 at 008363c98 contains the claim; internal/session/groundladder.go:789 carries the snapshot. On dev, the comment is at internal/session/task_run.go:8301.

The fix

Describe what the repository ground actually contributes to the branch and name the separate step that later lifts inherited work out of a landing.

Acceptance

  • e2e: a grounded /task begun with a dirty tracked file and an untracked file sees both in its copy while leaving the person's edits uncommitted.
  • Unit: a structural comment check or grounded-task assertion protects the corrected account.
  • Keep the manual consistent and record the corrected assumption in invalidates.
Lingua principale
Go
Stelle
115
Fork
14
Merge medio
9h 38m
PR unite (30g)
749

Preparare l'ambiente

Non abbiamo ancora controllato i file di configurazione di questo progetto. Parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

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 Agent-Field/CodeAF

Tutte le issue di Agent-Field/CodeAF

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.