Matthias Nott
2026-03-22 ec92560654f21a459cd30983666fb5ae8ab5529b
fix: pass sessionId with screenshot command
1 files modified
changed files
lib/screens/chat_screen.dart patch | view | blame | history
lib/screens/chat_screen.dart
....@@ -147,7 +147,7 @@
147147 _sendCommand('nav', {'key': key});
148148 },
149149 requestScreenshot: (sessionId) {
150
- _sendCommand('screenshot');
150
+ _sendCommand('screenshot', {'sessionId': sessionId ?? ref.read(activeSessionIdProvider)});
151151 },
152152 );
153153
....@@ -549,7 +549,7 @@
549549
550550 void _requestScreenshot() {
551551 _screenshotForChat = true;
552
- _sendCommand('screenshot');
552
+ _sendCommand('screenshot', {'sessionId': ref.read(activeSessionIdProvider)});
553553 if (mounted) {
554554 ScaffoldMessenger.of(context).showSnackBar(
555555 const SnackBar(