feat(app): an activity log of what Jarvis did (chat actions, schedule deliveries)
Each chat channel action the brain's tool asked for and each schedule delivery is recorded in activity/<day>.jsonl by kind, target, who asked and outcome, never its text, kept 30 days. The worker's chat_action carries the asker. A 한 일 screen lists the newest entries. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -471,7 +471,9 @@ def test_a_chat_action_goes_to_the_app_and_its_answer_comes_back(store):
|
||||
return action
|
||||
|
||||
action = asyncio.run(with_worker(body, store=store, brain=brain))
|
||||
assert {k: action[k] for k in ("action", "channel", "text")} == {"action": "send", "channel": "c1", "text": "안녕"}
|
||||
# The app records who asked for it (its activity log).
|
||||
assert {k: action[k] for k in ("action", "channel", "text", "user")} == {
|
||||
"action": "send", "channel": "c1", "text": "안녕", "user": "100"}
|
||||
assert results == [{"ok": True, "message_ids": ["555"]}]
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user