14 Commits

Author SHA1 Message Date
Kovid Goyal
cb0f05c4e4 Fix parsing of config set aborting on non-existent files 2026-06-02 21:19:04 +05:30
copilot-swe-agent[bot]
bff5af7052 address review: fix comment wording and rename burst_actions variable 2026-06-02 12:46:10 +00:00
copilot-swe-agent[bot]
d80fd1c23d consolidate watch tests and add include-in-included-file test
- Merge TestWatchForConfigChangesIncludeAdded and
  TestWatchForConfigChangesIncludeRemoved into the main
  TestWatchForConfigChanges function, which now starts the watcher
  once and shares it across all integration subtests.
- Add prime_watcher helper that retries writes until an action fires,
  replacing the blind time.Sleep(200ms) watcher-startup wait.
- Add new subtest "include added to already-included file adds its
  parent dir": writes an include directive into sub/included.conf
  (itself included from kitty.conf), then verifies that changes to
  the newly referenced file trigger the action, confirming its parent
  directory was added to the watch set.
- Fix TestWatchForConfigChangesDebounce to use prime_watcher instead
  of time.Sleep for startup; capture before_burst baseline before the
  burst loop so the burst-action count is computed correctly.
2026-06-02 12:45:00 +00:00
copilot-swe-agent[bot]
7e96373515 watch: non-recursive config file watching with dynamic include tracking 2026-06-02 08:23:05 +00:00
Kovid Goyal
f2df2394ce Fix conf watcher kitten not tracking changes to symlink targets 2026-05-24 09:54:01 +05:30
Kovid Goyal
dd136ba806 ... 2026-05-24 09:12:43 +05:30
Kovid Goyal
c3d1665fa6 run go modernizer 2026-04-16 19:12:31 +05:30
Kovid Goyal
9b406c21ff Make CodeQL happy 2026-04-16 15:30:21 +05:30
Kovid Goyal
8a61dbeee0 Micro optimisation 2026-04-16 15:03:44 +05:30
copilot-swe-agent[bot]
69c608c70f Add tests for watch_for_kitty_config_changes Go function
Fixes #9882
2026-04-16 14:55:34 +05:30
Kovid Goyal
e9f3844f64 Implement auto reload of config 2026-04-16 14:41:29 +05:30
Kovid Goyal
efbfbb49f9 Use a single go routine to watch all dirs 2026-04-16 12:53:53 +05:30
Kovid Goyal
aa0a415500 Parse config files to determine set of dirs to watch 2026-04-16 12:49:48 +05:30
Kovid Goyal
80ad647336 Start work on config watcher kitten 2026-04-16 12:37:43 +05:30