Skip to content

Commit 3c75560

Browse files
committed
enhance: bump default for startup.grace_ms to 700ms
1 parent 930bea9 commit 3c75560

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ require("codex").setup({
5959
startup = {
6060
timeout_ms = 2000, -- max time to wait for startup readiness before dropping queued sends
6161
retry_interval_ms = 50, -- retry interval while waiting for startup readiness
62-
grace_ms = 400, -- minimum delay after terminal open before first send
62+
grace_ms = 700, -- minimum delay after terminal open before first send
6363
},
6464
keymaps = {
6565
toggle = "<C-c>", -- terminal-mode toggle for Codex window

lua/codex/config.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ M.defaults = {
2828
startup = {
2929
timeout_ms = 2000,
3030
retry_interval_ms = 50,
31-
grace_ms = 400,
31+
grace_ms = 700,
3232
},
3333
keymaps = {
3434
toggle = "<C-c>",

tests/unit/config_spec.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ describe("codex.config", function()
2828
assert.equals("center", config.defaults.terminal.float.title_pos)
2929
assert.equals(2000, config.defaults.terminal.startup.timeout_ms)
3030
assert.equals(50, config.defaults.terminal.startup.retry_interval_ms)
31-
assert.equals(400, config.defaults.terminal.startup.grace_ms)
31+
assert.equals(700, config.defaults.terminal.startup.grace_ms)
3232
assert.equals("<C-c>", config.defaults.terminal.keymaps.toggle)
3333
assert.equals("<M-BS>", config.defaults.terminal.keymaps.clear_input)
3434
assert.is_false(config.defaults.terminal.keymaps.close)

tests/unit/native_provider_spec.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ local function make_config(overrides)
2222
startup = {
2323
timeout_ms = 2000,
2424
retry_interval_ms = 50,
25-
grace_ms = 400,
25+
grace_ms = 700,
2626
},
2727
keymaps = {
2828
toggle = "<C-c>",

0 commit comments

Comments
 (0)