docs: session history aktualisiert (Prompt 5-9 ergaenzt)

This commit is contained in:
Conrad Schulz 2026-06-03 06:28:08 +00:00
parent 5f35c90f0d
commit b093ad6c73
2 changed files with 43 additions and 1 deletions

View file

@ -129,3 +129,45 @@ Neue Session-Datei für heute angelegt: `2026-06-03_pre-commit-check6-session-pf
- Auto-Stub `2026-06-03_master_ca7f52b.md` gelöscht
- Git-Block aus dieser Session-Datei entfernt
### Prompt 5 (danach)
„warum ist jetzt noch die neue session datei als change nicht im commit?"
### Antwort 5
post-commit Hook läuft nach dem Commit → kann nicht Teil desselben Commits sein.
3 Optionen erklärt. Empfehlung: Option 1 (pragmatisch, nichts ändern).
### Prompt 6
„den git block brauche ich garnicht in der datei noch sonst wo lass und das einfach entfernen."
### Antwort 6
post-commit Hook auf no-op gesetzt. Alle Referenzen aus Scripts/Docs/Prompts entfernt.
Git-Block + Auto-Stub aus history/ gelöscht. Commit `d9508f7`.
### Prompt 7
„Dann will ich das history als pre commit hook ausgeführt wird."
### Antwort 7
Technisch nicht möglich — `/history` ist ein Copilot Chat Prompt, der das KI-Modell
benötigt. Git Hooks sind Shell-Prozesse ohne Zugang zu Copilot.
Alternative vorgeschlagen: Hook stagt Session-Datei automatisch wenn sie existiert.
### Prompt 8
„aber warum ging das dann als post commit hook? bzw das sollte doch das gleiche verhalten
sein wie mit der dokumentation und anderen anweisungen für den agenten. Warum kann der
agent dann nicht daruf hören und das machen bevor der commit gemacht wird?"
### Antwort 8
Unterschied erklärt:
- post-commit hat nur Shell-Arbeit gemacht (git log lesen, Text schreiben) — kein Modell nötig
- copilot-instructions.md ist kein automatischer Trigger — nur aktiv wenn Agent in Chat-Session ist
- Lösung: Agent muss /history selbst vor jedem Commit ausführen (ohne expliziten Aufruf)
### Prompt 9
„ja genau das will ich!!!"
### Antwort 9
copilot-instructions.md (beide) aktualisiert:
- Session END: "Der Agent führt dies automatisch am Ende jeder Aufgabe aus, bevor er `git commit` ausführt"
- "Der Agent wartet nicht auf expliziten `/history`-Aufruf er führt es automatisch vor jedem Commit aus"
Commit `5f35c90`.

View file

@ -8,7 +8,7 @@
## Aktueller Projektstatus
**Letzte Aktualisierung:** 2026-06-03 Agent führt /history automatisch vor jedem Commit aus
**Letzte Aktualisierung:** 2026-06-03 Agent führt History automatisch vor jedem Commit aus (kein /history-Aufruf nötig)
**Phase:** Produktion / stabil wird bei Bedarf erweitert
---