diff options
| author | Filip <[email protected]> | 2025-07-25 00:24:54 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-07-24 18:24:54 -0400 |
| commit | 01f75839a900dd3abb5f0a493247a71712e096b9 (patch) | |
| tree | c4bd3e520292b5ab1a8de37d4dfbce6c4a8824c8 | |
| parent | 4306f1a339e6ef811506c57615551d0d0058cf75 (diff) | |
| download | opencode-01f75839a900dd3abb5f0a493247a71712e096b9.tar.gz opencode-01f75839a900dd3abb5f0a493247a71712e096b9.zip | |
Fix: added environment() to summarize() (#1290)
| -rw-r--r-- | packages/opencode/src/session/index.ts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/packages/opencode/src/session/index.ts b/packages/opencode/src/session/index.ts index 0d66ca83b..c37af2791 100644 --- a/packages/opencode/src/session/index.ts +++ b/packages/opencode/src/session/index.ts @@ -1141,7 +1141,11 @@ export namespace Session { const filtered = msgs.filter((msg) => !lastSummary || msg.info.id >= lastSummary.info.id) const model = await Provider.getModel(input.providerID, input.modelID) const app = App.info() - const system = [...SystemPrompt.summarize(input.providerID), ...(await SystemPrompt.custom())] + const system = [ + ...SystemPrompt.summarize(input.providerID), + ...(await SystemPrompt.environment()), + ...(await SystemPrompt.custom()), + ] const next: MessageV2.Info = { id: Identifier.ascending("message"), |
