Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
version: 2
updates:
- package-ecosystem: gomod
directory: /
schedule:
interval: weekly
day: monday
time: "09:00"
timezone: UTC
open-pull-requests-limit: 10
labels:
- "dependencies"
- "go"
- "hawk"
commit-message:
prefix: "deps"
include: scope
groups:
production-dependencies:
dependency-type: production
development-dependencies:
dependency-type: development
- package-ecosystem: github-actions
directory: /
schedule:
interval: weekly
day: monday
time: "09:00"
timezone: UTC
open-pull-requests-limit: 5
labels:
- "dependencies"
- "github-actions"
commit-message:
prefix: "ci"
include: scope
3 changes: 1 addition & 2 deletions internal/engine/compact_auto.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package engine
import (
"context"
"errors"
"log"
"sync"
"time"

Expand Down Expand Up @@ -58,7 +57,7 @@ func (ac *AutoCompactor) ShouldAutoCompact(sess *Session) bool {
// Circuit breaker: skip once the breaker is open (too many consecutive
// failures) until its cooldown elapses, then re-arm half-open.
if !ac.breaker.ShouldAllow(time.Now()).Allow {
log.Printf("Auto-compact paused by circuit breaker.")
sess.Logger().Info("Auto-compact paused by circuit breaker.")
return false
}

Expand Down
2 changes: 1 addition & 1 deletion internal/tool/batch_exec.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ func batchPoll(ctx context.Context, apiKey, batchID string) (string, error) {
}
var result batchPollResult
if err := json.Unmarshal(raw, &result); err != nil {
return string(raw), nil // return raw on parse failure
return "", fmt.Errorf("batch poll parse: %w", err)
}
result.BatchID = batchID
out, _ := json.MarshalIndent(result, "", " ")
Expand Down
Loading