feat: Add mouse text selection auto-copy to clipboard in TUI

Enable native text selection across tool components and agent messages
with automatic clipboard copy, toast notification, and decorative icon
stripping. Replace Padding wrappers with Text to support selection
across multiple renderables.
This commit is contained in:
0xallam
2026-02-07 10:26:14 -08:00
committed by Ahmed Allam
parent 0a63ffba63
commit e0b750dbcd
5 changed files with 160 additions and 12 deletions
+3 -1
View File
@@ -43,7 +43,9 @@ class AgentState(BaseModel):
self.iteration += 1
self.last_updated = datetime.now(UTC).isoformat()
def add_message(self, role: str, content: Any, thinking_blocks: list[dict[str, Any]] | None = None) -> None:
def add_message(
self, role: str, content: Any, thinking_blocks: list[dict[str, Any]] | None = None
) -> None:
message = {"role": role, "content": content}
if thinking_blocks:
message["thinking_blocks"] = thinking_blocks