(cwd, memorySection string)
| 841 | memoryPromptSection, err := BuildMemoryBehaviorSection(memorySection) |
| 842 | if err == nil { |
| 843 | sections = append(sections, memoryPromptSection) |
| 844 | } |
| 845 | sessionMemoryPromptSection, err := BuildSessionMemoryBehaviorSection(cfg.SessionMemoryEnabled) |
| 846 | if err == nil { |
| 847 | sections = append(sections, sessionMemoryPromptSection) |
| 848 | } |
| 849 | return InitialContext{ |
| 850 | CWD: cwd, |
| 851 | Sections: sections, |
| 852 | ProjectDocs: projectDocs, |