Added OTP Activity Review WIP

This commit is contained in:
2025-11-13 11:45:13 -05:00
parent 5cb079dad7
commit f0e77db414
11 changed files with 787 additions and 74 deletions
+7 -3
View File
@@ -1,5 +1,5 @@
import logging
from typing import List
from typing import List, Optional
from textual.containers import Horizontal, Vertical
from textual.css.query import NoMatches
@@ -31,7 +31,11 @@ class OTPGenerator(Widget):
class OTPInfo(Message):
def __init__(
self, devices: List[Agent], requestor: str, reasoning: str, duration: int
self,
devices: Optional[List[Agent]],
requestor: str,
reasoning: str,
duration: int,
):
super().__init__()
self.devices = devices
@@ -243,7 +247,7 @@ class OTPGenerator(Widget):
self.otp_generated = True
# Access API from the app - this is the key change!
api = self.app.api
api = self.app.api # type: ignore
output_lines = [
"Requested OTP Codes:",