fix(app): the activity log keeps ids and known words only and prunes on each new day
A chat action's channel, message and asker are recorded only when they are ids (else '(잘못된 ID)'), an unknown action as chat.other, and a failure as a fixed note, so text the model put in those fields never reaches the log. Old day files are also deleted on the first record of each new day. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -171,9 +171,12 @@ failed. PC control actions join it with M7. Ordinary answers are not recorded.
|
||||
- One JSON line per action in `activity/<YYYY-MM-DD>.jsonl` (the folder is made at the first one):
|
||||
`{at, kind, target, by, ok, note}`. `target` is the channel (and message) id or `예약 <id>`; `by`
|
||||
is who asked, `<user id> <name>` (the brain's `chat_action` carries the asker, voice_worker.spec.md);
|
||||
`note` is why it failed. **Never the text** of a message, reminder or answer.
|
||||
- Day files older than 30 days are deleted when the services or the screen open the log. A failed
|
||||
write is a warning in the log and never stops the action.
|
||||
`note` is why a schedule delivery failed, or the fixed `채팅 동작 실패` for a chat action (its error
|
||||
may quote what the model wrote). **Never the text** of a message, reminder or answer: an id that
|
||||
is not digits is recorded as `(잘못된 ID)` and an unknown chat action as `chat.other`.
|
||||
- Day files older than 30 days are deleted when the services or the screen open the log, and on
|
||||
the first record of each new day while it runs. A failed write is a warning in the log and never
|
||||
stops the action.
|
||||
- `activity_list` `{limit}` (1-1000, default 200) reads the newest first.
|
||||
|
||||
## Secrets (`app/src/secrets.rs`)
|
||||
|
||||
Reference in New Issue
Block a user