Open source AI coding agent. Designed for large projects and real world tasks.
Go aiai-agentsai-developer-toolsai-toolsclicommand-linedeveloper-toolsgitgolanggpt-4llmopenaipolyglot-programmingterminalterminal-basedterminal-ui
Fix for occasional race condition during file builds that causes error "Fatal: Unable to write new index file"
Dane Schneider317ffe7b02f1
diff --git a/app/server/db/locks.go b/app/server/db/locks.goindex c894d8ff..d96b8643 100644--- a/app/server/db/locks.go+++ b/app/server/db/locks.go@@ -2,6 +2,7 @@ package dbimport ("context"+ "database/sql""fmt""log""time"@@ -44,7 +45,7 @@ func lockRepo(params LockRepoParams, numRetry int) (string, error) {ctx := params.CtxcancelFn := params.CancelFn- tx, err := Conn.Begin()+ tx, err := Conn.BeginTx(ctx, &sql.TxOptions{Isolation: sql.LevelSerializable})if err != nil {return "", fmt.Errorf("error starting transaction: %v", err)}diff --git a/releases/cli/versions/0.8.3.md b/releases/cli/versions/0.8.3.mdindex b01080dd..5887e85c 100644--- a/releases/cli/versions/0.8.3.md+++ b/releases/cli/versions/0.8.3.md@@ -1,3 +1,4 @@- Add support for new OpenAI models: `gpt-4-turbo` and `gpt-4-turbo-2024-04-09` -- these models haven't been set as defaults yet since they need more testing, but can be used with the `set-model` command- Fix for `set-model` command argument parsing (https://github.com/plandex-ai/plandex/issues/75)-- Fix for panic during plan stream when a file name's length exceeds the terminal width (https://github.com/plandex-ai/plandex/issues/84)\ No newline at end of file+- Fix for panic during plan stream when a file name's length exceeds the terminal width (https://github.com/plandex-ai/plandex/issues/84)+- Fix for handling files that are loaded into context and later deleted from the file system (https://github.com/plandex-ai/plandex/issues/47)\ No newline at end of filediff --git a/releases/server/versions/0.8.4.md b/releases/server/versions/0.8.4.mdindex e4acba87..475d91ea 100644--- a/releases/server/versions/0.8.4.md+++ b/releases/server/versions/0.8.4.md@@ -1,3 +1,4 @@- Add support for new OpenAI models: `gpt-4-turbo` and `gpt-4-turbo-2024-04-09` -- these models haven't been set as defaults yet since they need more testing, but can be used with the `set-model` command- Fix for handling files that are loaded into context and later deleted from the file system (https://github.com/plandex-ai/plandex/issues/47)-- Handle file paths with ### prefixes (https://github.com/plandex-ai/plandex/issues/77)\ No newline at end of file+- Handle file paths with ### prefixes (https://github.com/plandex-ai/plandex/issues/77)+- Fix for occasional race condition during file builds that causes error "Fatal: Unable to write new index file"\ No newline at end of file