feat(agent): prompt incremental commit and push during work #42
No reviewers
Labels
No labels
agent:done
agent:ready
agent:working
enhancement
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
frank/forgecli!42
Loading…
Reference in a new issue
No description provided.
Delete branch "agent/issue-40-agent-während-der-implementierung-regel"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
BuildPrompt, CI-/Conflict-/Mention-Follow-ups) fordern jetzt inkrementelle, thematisch kleine Commits mit sofortigem Push nach logischen Teilschritten.docs/wiki/Agent-Watch.md) entsprechend aktualisiert.Test plan
go test ./internal/agent/... -run 'TestBuildPrompt|TestBuildConflict|TestBuildCIFix|TestBuildMention'Kurzfassung
internal/agent/prompt.go: Neue HilfsfunktionwriteIncrementalCommitPushInstructions— alle Prompts fordern regelmäßiges Committen und Pushen; im PR-Modus bleibt „Do not open a pull request“.internal/agent/pipeline.go: Kommentar insuccessFinishzur Idempotenz bei bereits gepushten Agent-Commits.Tests: Erwartete Strings von „Do not push“ auf „push incrementally“ / „push immediately“ umgestellt; neuer Test
TestBuildPromptCommitModeIncrementalGit.docs/wiki/Agent-Watch.md: Abschnitt „Inkrementelle Commits während der Arbeit“ mit optionalempre_prompt-Beispiel.Closes #40
🔗 Linked to issue #40. Babysitting CI until green…
✅ forge agent finished implementation
feat(agent): prompt incremental commit and push during workAgent output (tail)
☑️ ToDos checked off
🟢 CI green (attempt 1/3)
https://repository.hildebrandt.io/frank/forgecli/actions/runs/95
⚠️ Watch: merge conflict detected — starting repair…
⚠️ Merge conflict detected (attempt 1/3)
Re-running coding agent to merge/rebase and resolve conflicts…
🛠️ Pushed merge-conflict fix (attempt 1/3). Re-checking mergeability…
Konflikte
internal/agent/prompt.gowriteIncrementalCommitPushInstructions.mainentfällt, damit Issue #40 (regelmäßig pushen) erhalten bleibt.docs/wiki/Agent-Watch.md--pr-Modus: WIP-PR und Fortschritt (#41) sowie Inkrementelle Commits während der Arbeit (#40).Verifikation
go test ./internal/agent/...— bestandenebacf49— Merge origin/main into agent/issue-40Der Branch ist 3 Commits vor
origin; der Forge-Agent-Watcher kann pushen und die Mergeability erneut prüfen.⚠️ Merge conflict detected (attempt 2/3)
Re-running coding agent to merge/rebase and resolve conflicts…
🛠️ Pushed merge-conflict fix (attempt 2/3). Re-checking mergeability…
Die Merge-Konflikte sind bereits aufgelöst — der Branch ist mit
mainzusammengeführt und mergebar.Status: PR #42 ist lokal und remote auf dem Stand
ebacf49und laut Forgejo-APImergeable: true. Es gibt nichts mehr zu committen oder zu pushen.Merge-Commit:
ebacf49— Merge origin/main into agent/issue-40Aufgelöste Konflikte:
internal/agent/prompt.go— Beide Seiten kombiniert:writeIncrementalCommitPushInstructions)docs/wiki/Agent-Watch.md— Beide Wiki-Abschnitte erhalten:--pr-Modus: WIP-PR und Fortschritt (aus #41)Tests:
go test ./internal/agent/... -run 'TestBuildPrompt|TestBuildConflict|TestBuildCIFix|TestBuildMention'— bestanden.Der Forge-Agent-Watcher kann den Branch pushen und die Mergeability erneut prüfen; von hier aus ist keine weitere Aktion nötig.
✅ Merge conflicts resolved — PR is mergeable again.