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
marked this pull request as ready for review
Copilot AI review requested due to automatic review settings
February 12, 2026 22:19This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters