chore: Replace OnSnapshot callback with Emitter interface by johnstcn · Pull Request #185 · coder/agentapi

added 3 commits

February 12, 2026 18:31
- Add Emitter interface to screentracker package
- Remove OnSnapshot from PTYConversationConfig, accept Emitter in NewPTY
- Rename EventEmitter methods: EmitMessages, EmitStatus, EmitScreen
- Accept agentType at NewEventEmitter construction instead of per-call
- Update server.go wiring, all tests pass
- Add Emitter interface to screentracker package
- Remove OnSnapshot from PTYConversationConfig, accept Emitter in NewPTY
- Rename EventEmitter methods: EmitMessages, EmitStatus, EmitScreen
- Accept agentType at NewEventEmitter construction instead of per-call
- Update server.go wiring, all tests pass

@johnstcn johnstcn marked this pull request as ready for review

February 12, 2026 22:19

Copilot AI review requested due to automatic review settings

February 12, 2026 22:19