Files
luccast 1eb55309a6 Refactor session handling in MonitorPage to streamline status updates and remove redundant session creation logic
- Simplified session status updates by introducing `updateSessionStatus` function.
- Removed unnecessary checks and session creation logic for existing sessions, enhancing performance and clarity.
- Improved event handling for session updates in response to incoming data.
2026-01-25 21:51:10 -05:00

1.7 KiB

[parser] chat event: { "runId": "f720ebdc-4703-4f7e-92c2-5b6b39420b0c", "sessionKey": "agent:main:discord:channel:1464739766229799017", "seq": 2, "state": "delta", "message": { "role": "assistant", "content": [ { "type": "text", "text": "Happy" } ], "timestamp": 1769395101463 } } [parser] chat event: { "runId": "f720ebdc-4703-4f7e-92c2-5b6b39420b0c", "sessionKey": "agent:main:discord:channel:1464739766229799017", "seq": 10, "state": "final", "message": { "role": "assistant", "content": [ { "type": "text", "text": "Happy to keep the laughs coming! 😄" } ], "timestamp": 1769395101501 } } [trpc] event: final sessionKey: agent:main:discord:channel:1464739766229799017 [parser] chat event: { "runId": "48b7877e-1c27-4f4c-ade2-61815b9d6a7a", "sessionKey": "agent:main:discord:channel:1464739766229799017", "seq": 7, "state": "delta", "message": { "role": "assistant", "content": [ { "type": "text", "text": "**" } ], "timestamp": 1769395154398 } } [parser] chat event: { "runId": "48b7877e-1c27-4f4c-ade2-61815b9d6a7a", "sessionKey": "agent:main:discord:channel:1464739766229799017", "seq": 50, "state": "final", "message": { "role": "assistant", "content": [ { "type": "text", "text": "Toronto Weather:\n\n🌨 Temperature: -10°C\n💧 Humidity: 85%\n💨 Wind: 23 km/h\n\nIt's cold out there! Bundle up if you're heading out! 🧣❄️" } ], "timestamp": 1769395154462 } }