Skip to content

Commit 68fb651

Browse files
Copilotlpcox
andcommitted
Increase default payload size threshold from 1KB to 10KB
Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com>
1 parent 391aa4c commit 68fb651

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

internal/cmd/flags_logging.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
const (
1414
defaultLogDir = "/tmp/gh-aw/mcp-logs"
1515
defaultPayloadDir = "/tmp/jq-payloads"
16-
defaultPayloadSizeThreshold = 1024 // 1KB default threshold
16+
defaultPayloadSizeThreshold = 10240 // 10KB default threshold
1717
)
1818

1919
// Logging flag variables

internal/cmd/flags_logging_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ func TestPayloadSizeThresholdFlagDefault(t *testing.T) {
7171
os.Unsetenv("MCP_GATEWAY_PAYLOAD_SIZE_THRESHOLD")
7272

7373
result := getDefaultPayloadSizeThreshold()
74-
assert.Equal(t, 1024, result, "Default should be 1024 bytes")
74+
assert.Equal(t, 10240, result, "Default should be 10240 bytes")
7575
}
7676

7777
func TestPayloadSizeThresholdEnvVar(t *testing.T) {

internal/config/config_core.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ type GatewayConfig struct {
5757

5858
// PayloadSizeThreshold is the size threshold (in bytes) for storing payloads to disk.
5959
// Payloads larger than this threshold are stored to disk, smaller ones are returned inline.
60-
// Default: 1024 bytes (1KB)
60+
// Default: 10240 bytes (10KB)
6161
PayloadSizeThreshold int `toml:"payload_size_threshold" json:"payload_size_threshold,omitempty"`
6262
}
6363

internal/config/config_payload.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ const DefaultPayloadDir = "/tmp/jq-payloads"
77

88
// DefaultPayloadSizeThreshold is the default size threshold (in bytes) for storing payloads to disk.
99
// Payloads larger than this threshold are stored to disk, smaller ones are returned inline.
10-
// Default: 1024 bytes (1KB)
11-
const DefaultPayloadSizeThreshold = 1024
10+
// Default: 10240 bytes (10KB)
11+
const DefaultPayloadSizeThreshold = 10240
1212

1313
func init() {
1414
// Register default setter for PayloadDir and PayloadSizeThreshold

0 commit comments

Comments
 (0)