summaryrefslogtreecommitdiff
path: root/internal/api/elaborate.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/api/elaborate.go')
-rw-r--r--internal/api/elaborate.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/internal/api/elaborate.go b/internal/api/elaborate.go
index c6d08f4..5df772e 100644
--- a/internal/api/elaborate.go
+++ b/internal/api/elaborate.go
@@ -216,8 +216,12 @@ func (s *Server) handleElaborateTask(w http.ResponseWriter, r *http.Request) {
workDir = input.ProjectDir
}
- // Append verbatim user input to RAW_NARRATIVE.md in the background (best effort).
- go s.appendRawNarrative(workDir, input.Prompt)
+ // Append verbatim user input to RAW_NARRATIVE.md only when the user explicitly
+ // provided a project_dir — the narrative is per-project human input, not a
+ // server-level log.
+ if input.ProjectDir != "" {
+ go s.appendRawNarrative(workDir, input.Prompt)
+ }
projectContext := readProjectContext(workDir)
fullPrompt := input.Prompt