co-mono/packages/mom/src
Mario Zechner 0c6c0f34dd mom: add working indicator and improve stop command
Working Indicator:
- Add '...' to channel messages while mom is processing
- Automatically removed when work completes or stops
- Applies to working message, not status messages

Improved Stop Command:
- Posts separate 'Stopping...' message that updates to 'Stopped'
- Original working message continues updating with tool results
- Clean separation between status and work output
- Properly handles abort during multi-step operations

Clean Stop Reason Handling:
- Agent run() now returns { stopReason } instead of throwing
- Handle 'aborted', 'error', 'stop', 'length', 'toolUse' cases cleanly
- No more exception-based control flow
- Track stopReason from assistant message.stopReason field

New SlackContext Methods:
- replaceMessage() - replace message text instead of appending
- setWorking() - add/remove working indicator
- Improved context tracking for stop command updates
2025-11-26 20:49:02 +01:00
..
tools mom: Docker sandbox support with --sandbox=docker:container-name option 2025-11-26 01:06:00 +01:00
agent.ts mom: add working indicator and improve stop command 2025-11-26 20:49:02 +01:00
log.ts mom: add centralized logging, usage tracking, and improve prompt caching 2025-11-26 18:04:16 +01:00
main.ts mom: add working indicator and improve stop command 2025-11-26 20:49:02 +01:00
sandbox.ts mom: Docker sandbox support with --sandbox=docker:container-name option 2025-11-26 01:06:00 +01:00
slack.ts mom: add working indicator and improve stop command 2025-11-26 20:49:02 +01:00
store.ts mom: add centralized logging, usage tracking, and improve prompt caching 2025-11-26 18:04:16 +01:00