Verify visible hello MCP run and add shared control lease

This commit is contained in:
Александр Петров
2026-09-17 18:15:01 +03:00
parent 619c4c9af5
commit a43e7bda89
14 changed files with 575 additions and 44 deletions
+7 -1
View File
@@ -54,6 +54,11 @@ class DapEngine:
'description': self._description(location)}))
return {}, events
if command == 'disconnect':
if self.attached is not None:
try:
self.rpc('release_control')
except (SessionError, OSError):
pass
return {}, events
if command == 'threads':
return {'threads': [{'id': 1, 'name': 'Sprinter Z80'}]}, events
@@ -118,7 +123,8 @@ class DapEngine:
def poll_events(self, timeout=1):
previous = self.event_sequence
result = self.rpc('events', {'after': self.event_sequence, 'timeout': timeout},
result = self.rpc('events', {'after': self.event_sequence, 'timeout': timeout,
'owner': 'cli'},
timeout=timeout + 2)
self.event_sequence = result['last']
translated = []