TODO: starting the daemon by exec, which would retire proc_title.rs

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Greg ShuflinandClaude Opus 5.5 committed 2026-10-03 19:14:16 -07:00
1 parent 932a901bd8
commit 4ba394af1d
1 file changed
+12
+12
View File
@@ -321,6 +321,18 @@ since it isn't worth taking before it shows up in a profile.
## Code Design
### Consider starting the daemon by exec rather than fork
- **Description**: `syn-daemon/src/proc_title.rs` is 270 lines, much of it unsafe
`/proc/self/stat` parsing and argv overwriting. It exists only because `daemonize`
forks without exec, so the daemon inherits the argv of the CLI, TUI or desktop app
that started it. Spawning it with
`Command::new(current_exe()).arg0("syn-daemon")` plus a hidden entry argument would
remove the file and the `daemonize` dependency.
- **The cost**: each of `syn`, `syn-tui` and `syn-gui` needs that hidden entry point,
daemon startup takes a different path, and log-file handling may change with it. It
is a risky startup change with no user-visible gain, so it waits until something
else needs that startup path reworked.
### Redesign keyboard navigation across the TUI and GUI
- **Description**: `gui-app` and `tui-app` grew keyboard navigation ad hoc, screen by
screen, with no shared model for the two concerns that recur everywhere: (1) drilling