consciousness/src/bin/poc-daemon
ProofOfConcept bea1bd5680 daemon: fix UTF-8 panics on multi-byte character truncation
&str[..n] panics when n falls inside a multi-byte UTF-8 sequence.
This crashed the daemon when processing IRC messages containing
Hebrew/Yiddish characters (ehashman's messages hit byte 79-81).

Replace all byte-index truncation with chars().take(n).collect()
in tmux send_prompt preview, notification logging, and git context
truncation.

Co-Authored-By: ProofOfConcept <poc@bcachefs.org>
2026-03-05 21:15:40 -05:00
..
modules merge poc-daemon and poc-hook into poc-memory repo 2026-03-05 19:17:22 -05:00
config.rs merge poc-daemon and poc-hook into poc-memory repo 2026-03-05 19:17:22 -05:00
context.rs daemon: fix UTF-8 panics on multi-byte character truncation 2026-03-05 21:15:40 -05:00
idle.rs merge poc-daemon and poc-hook into poc-memory repo 2026-03-05 19:17:22 -05:00
main.rs merge poc-daemon and poc-hook into poc-memory repo 2026-03-05 19:17:22 -05:00
notify.rs daemon: fix UTF-8 panics on multi-byte character truncation 2026-03-05 21:15:40 -05:00
rpc.rs merge poc-daemon and poc-hook into poc-memory repo 2026-03-05 19:17:22 -05:00
tmux.rs daemon: fix UTF-8 panics on multi-byte character truncation 2026-03-05 21:15:40 -05:00