Skip to content

Commit fcd21c0

Browse files
committed
chore: cleanup imports
1 parent 693db68 commit fcd21c0

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

src/agent_chat_cli/core/actions.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
from typing import TYPE_CHECKING
22

3+
from textual.widgets import TextArea
4+
35
from agent_chat_cli.utils.enums import ControlCommand
46
from agent_chat_cli.components.chat_history import ChatHistory, MessagePosted
57
from agent_chat_cli.components.messages import Message
@@ -22,8 +24,6 @@ async def query(self, user_input: str) -> None:
2224
await self.app.agent_loop.query_queue.put(user_input)
2325

2426
async def submit_user_message(self, message: str) -> None:
25-
from textual.widgets import TextArea
26-
2727
self.app.post_message(MessagePosted(Message.user(message)))
2828

2929
thinking_indicator = self.app.query_one(ThinkingIndicator)
@@ -62,7 +62,6 @@ async def new(self) -> None:
6262

6363
async def respond_to_tool_permission(self, response: str) -> None:
6464
from agent_chat_cli.components.user_input import UserInput
65-
from textual.widgets import TextArea
6665

6766
log_json(
6867
{

src/agent_chat_cli/core/message_bus.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import asyncio
22
from typing import TYPE_CHECKING
33

4-
from textual.widgets import Markdown
4+
from textual.widgets import Markdown, TextArea
55
from textual.containers import VerticalScroll
66

77
from agent_chat_cli.components.chat_history import ChatHistory, MessagePosted
@@ -144,8 +144,6 @@ async def _handle_tool_permission_request(self, message: AgentMessage) -> None:
144144
await self._scroll_to_bottom()
145145

146146
async def _handle_result(self) -> None:
147-
from textual.widgets import TextArea
148-
149147
# Check if there's a queued message (e.g., from custom permission response)
150148
if not self.app.agent_loop.query_queue.empty():
151149
# Don't turn off thinking - there's more work to do

0 commit comments

Comments
 (0)