[PR #1] [MERGED] feat: compact and other improvements #9497

Closed
opened 2026-02-16 18:13:39 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/anomalyco/opencode/pull/1
Author: @adamdotdevin
Created: 5/2/2025
Status: Merged
Merged: 5/2/2025
Merged by: @adamdotdevin

Base: devHead: compact


📝 Commits (8)

  • 66e3852 feat: better logs page
  • ce77826 feat: better diagnostic visuals in status bar
  • 4f2671f feat: write to context.md by default
  • 8dd8cbf feat: compact command with auto-compact
  • 31b20b0 fix: anthropic non-empty blocks
  • 7c4a9a0 fix: bedrock context window
  • f9e8fb3 fix: diagnostics tool init
  • 2a16b94 chore: cleanup and logging

📊 Changes

33 files changed (+643 additions, -137 deletions)

View changed files

CONTEXT.md (+24 -0)
📝 go.mod (+0 -4)
📝 go.sum (+0 -6)
📝 internal/config/config.go (+2 -0)
📝 internal/db/db.go (+57 -47)
📝 internal/db/files.sql.go (+1 -1)
📝 internal/db/messages.sql.go (+45 -1)
internal/db/migrations/20250502063010_add_summary_to_sessions.sql (+11 -0)
📝 internal/db/models.go (+3 -1)
📝 internal/db/querier.go (+2 -1)
📝 internal/db/sessions.sql.go (+33 -11)
📝 internal/db/sql/messages.sql (+6 -0)
📝 internal/db/sql/sessions.sql (+7 -1)
📝 internal/llm/agent/agent.go (+260 -8)
📝 internal/llm/agent/tools.go (+5 -3)
📝 internal/llm/models/models.go (+3 -0)
📝 internal/llm/prompt/coder.go (+1 -1)
📝 internal/llm/provider/anthropic.go (+13 -8)
📝 internal/llm/tools/diagnostics.go (+2 -1)
📝 internal/llm/tools/shell/shell.go (+3 -1)

...and 13 more files

📄 Description

No description provided


🔄 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/anomalyco/opencode/pull/1 **Author:** [@adamdotdevin](https://github.com/adamdotdevin) **Created:** 5/2/2025 **Status:** ✅ Merged **Merged:** 5/2/2025 **Merged by:** [@adamdotdevin](https://github.com/adamdotdevin) **Base:** `dev` ← **Head:** `compact` --- ### 📝 Commits (8) - [`66e3852`](https://github.com/anomalyco/opencode/commit/66e38526fadc90aaf2ab2c01d3be38db4f7eb85b) feat: better logs page - [`ce77826`](https://github.com/anomalyco/opencode/commit/ce77826af17def7da96075b5d3de06cfde1aaa86) feat: better diagnostic visuals in status bar - [`4f2671f`](https://github.com/anomalyco/opencode/commit/4f2671f6b2bf43c4abc242fa5ffaa5f980624a22) feat: write to context.md by default - [`8dd8cbf`](https://github.com/anomalyco/opencode/commit/8dd8cbf4c57b2bfd37f4c8c834176735952fdbe7) feat: compact command with auto-compact - [`31b20b0`](https://github.com/anomalyco/opencode/commit/31b20b0bdd91019fc9e7b9ca59b7d6e16d147a8e) fix: anthropic non-empty blocks - [`7c4a9a0`](https://github.com/anomalyco/opencode/commit/7c4a9a0958bcd7223e7826544100298a5eb5ce77) fix: bedrock context window - [`f9e8fb3`](https://github.com/anomalyco/opencode/commit/f9e8fb3ddec1ab463cfd20f2d80417e9474a6b8c) fix: diagnostics tool init - [`2a16b94`](https://github.com/anomalyco/opencode/commit/2a16b94431dcd89bd3d59ee1073a27442c95409f) chore: cleanup and logging ### 📊 Changes **33 files changed** (+643 additions, -137 deletions) <details> <summary>View changed files</summary> ➕ `CONTEXT.md` (+24 -0) 📝 `go.mod` (+0 -4) 📝 `go.sum` (+0 -6) 📝 `internal/config/config.go` (+2 -0) 📝 `internal/db/db.go` (+57 -47) 📝 `internal/db/files.sql.go` (+1 -1) 📝 `internal/db/messages.sql.go` (+45 -1) ➕ `internal/db/migrations/20250502063010_add_summary_to_sessions.sql` (+11 -0) 📝 `internal/db/models.go` (+3 -1) 📝 `internal/db/querier.go` (+2 -1) 📝 `internal/db/sessions.sql.go` (+33 -11) 📝 `internal/db/sql/messages.sql` (+6 -0) 📝 `internal/db/sql/sessions.sql` (+7 -1) 📝 `internal/llm/agent/agent.go` (+260 -8) 📝 `internal/llm/agent/tools.go` (+5 -3) 📝 `internal/llm/models/models.go` (+3 -0) 📝 `internal/llm/prompt/coder.go` (+1 -1) 📝 `internal/llm/provider/anthropic.go` (+13 -8) 📝 `internal/llm/tools/diagnostics.go` (+2 -1) 📝 `internal/llm/tools/shell/shell.go` (+3 -1) _...and 13 more files_ </details> ### 📄 Description _No description provided_ --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 18:13:39 -05:00
yindo closed this issue 2026-02-16 18:13:39 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#9497