[PR #14823] [MERGED] launch: add compact window for claude code #14857

Closed
opened 2026-04-13 01:04:09 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/14823
Author: @ParthSareen
Created: 3/13/2026
Status: Merged
Merged: 3/13/2026
Merged by: @ParthSareen

Base: mainHead: parth-cc-context-window


📝 Commits (1)

  • 3151119 launch: add compact window for claude code

📊 Changes

2 files changed (+30 additions, -1 deletions)

View changed files

📝 cmd/launch/claude.go (+10 -1)
📝 cmd/launch/claude_test.go (+20 -0)

📄 Description

Leverage CLAUDE_CODE_AUTO_COMPACT_WINDOW and set for cloud models for now. Local models will be updated in a follow up.

It currently triggers almost every other message even when set to ~50k tokens. Probably some stuff to figure out there. CC @hoyyeva


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/14823 **Author:** [@ParthSareen](https://github.com/ParthSareen) **Created:** 3/13/2026 **Status:** ✅ Merged **Merged:** 3/13/2026 **Merged by:** [@ParthSareen](https://github.com/ParthSareen) **Base:** `main` ← **Head:** `parth-cc-context-window` --- ### 📝 Commits (1) - [`3151119`](https://github.com/ollama/ollama/commit/315111951d8966a26768905a4588d5638f16d875) launch: add compact window for claude code ### 📊 Changes **2 files changed** (+30 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `cmd/launch/claude.go` (+10 -1) 📝 `cmd/launch/claude_test.go` (+20 -0) </details> ### 📄 Description Leverage `CLAUDE_CODE_AUTO_COMPACT_WINDOW` and set for cloud models for now. Local models will be updated in a follow up. It currently triggers almost every other message even when set to ~50k tokens. Probably some stuff to figure out there. CC @hoyyeva --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-13 01:04:09 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#14857