From e12e538a495d2e704050c131095f6cf8bb53d1ca Mon Sep 17 00:00:00 2001 From: "claude[bot]" <41898282+claude[bot]@users.noreply.github.com> Date: Mon, 13 Oct 2025 12:25:04 +0000 Subject: [PATCH 1/3] fix: remove timeout from squash summarization to support local LLMs Removed the hard-coded 30-second timeout that was causing context deadline exceeded errors when using local LLM instances with large contexts. The summarization request now uses an unbounded context, allowing it to complete regardless of how long the local LLM takes. Fixes #80 Co-authored-by: Alvin --- internal/squash.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/internal/squash.go b/internal/squash.go index 6621192..6d46bfd 100644 --- a/internal/squash.go +++ b/internal/squash.go @@ -120,9 +120,8 @@ func (m *Manager) summarizeChatHistory(messages []ChatMessage) (string, error) { }, } - // Create a context for the summarization request - ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second) - defer cancel() + // Create a context for the summarization request (no timeout to support local LLMs with large contexts) + ctx := context.Background() summary, err := m.AiClient.GetResponseFromChatMessages(ctx, summarizationMessage, m.GetOpenRouterModel()) if err != nil { From a3057d64b6584a77e61eeaca8827fc959b255896 Mon Sep 17 00:00:00 2001 From: "claude[bot]" <41898282+claude[bot]@users.noreply.github.com> Date: Mon, 13 Oct 2025 17:20:39 +0000 Subject: [PATCH 2/3] docs: add installation instructions for master branch Added a new section to the README explaining how to install TmuxAI from the master branch for users who want the latest development version. Includes both manual build and go install methods. Co-authored-by: Alvin --- README.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/README.md b/README.md index bbbd286..94c0ab5 100644 --- a/README.md +++ b/README.md @@ -33,6 +33,7 @@ - [Quick Install](#quick-install) - [Homebrew](#homebrew) - [Manual Download](#manual-download) + - [Install from Master (Latest Development Version)](#install-from-master-latest-development-version) - [Post-Installation Setup](#post-installation-setup) - [TmuxAI Layout](#tmuxai-layout) - [Observe Mode](#observe-mode) @@ -104,6 +105,30 @@ chmod +x ./tmuxai sudo mv ./tmuxai /usr/local/bin/ ``` +### Install from Master (Latest Development Version) + +To install the latest development version directly from the master branch: + +```bash +# Clone the repository +git clone https://github.com/alvinunreal/tmuxai.git +cd tmuxai + +# Build from source (requires Go) +go build -o tmuxai + +# Move to your PATH +sudo mv ./tmuxai /usr/local/bin/ +``` + +Alternatively, you can install directly using Go: + +```bash +go install github.com/alvinunreal/tmuxai@master +``` + +**Note:** The master branch contains the latest features and fixes but may be less stable than official releases. + ## Post-Installation Setup After installing TmuxAI, you need to configure your API key to start using it: From 1108ff713c9481669faac94a70790e1bd0ed51f2 Mon Sep 17 00:00:00 2001 From: Alvin Date: Mon, 13 Oct 2025 19:26:23 +0200 Subject: [PATCH 3/3] Update README.md --- README.md | 22 ++++------------------ 1 file changed, 4 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index 94c0ab5..5015aeb 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ - [Quick Install](#quick-install) - [Homebrew](#homebrew) - [Manual Download](#manual-download) - - [Install from Master (Latest Development Version)](#install-from-master-latest-development-version) + - [Install from Main (Latest Development Version)](#install-from-main-latest-development-version) - [Post-Installation Setup](#post-installation-setup) - [TmuxAI Layout](#tmuxai-layout) - [Observe Mode](#observe-mode) @@ -105,29 +105,15 @@ chmod +x ./tmuxai sudo mv ./tmuxai /usr/local/bin/ ``` -### Install from Master (Latest Development Version) +### Install from Main -To install the latest development version directly from the master branch: - -```bash -# Clone the repository -git clone https://github.com/alvinunreal/tmuxai.git -cd tmuxai - -# Build from source (requires Go) -go build -o tmuxai - -# Move to your PATH -sudo mv ./tmuxai /usr/local/bin/ -``` - -Alternatively, you can install directly using Go: +To install the latest development version directly from the main branch: ```bash go install github.com/alvinunreal/tmuxai@master ``` -**Note:** The master branch contains the latest features and fixes but may be less stable than official releases. +**Note:** The main branch contains the latest features and fixes but may be less stable than official releases. ## Post-Installation Setup