WIP: save local edits (tui.py, .gitignore)

This commit is contained in:
giveen
2026-01-20 11:46:32 -07:00
parent 0cd3ecc2b1
commit 0a79b5d54e
2 changed files with 9 additions and 4 deletions

3
.gitignore vendored
View File

@@ -90,6 +90,9 @@ tests/tmp/
tests/*.local.py
scripts/test_*.sh
*.test.sh
# Ignore all test_*.py scripts in tests/
tests/test_*.py
*.test.sh
# Workspaces directory (user data should not be committed)
/workspaces/

View File

@@ -1919,8 +1919,8 @@ Be concise. Use the actual data from notes."""
# Use assist mode by default
if self.agent and not self._is_running:
# Schedule assist run and keep task handle
self._current_worker = asyncio.create_task(self._run_assist(message))
# Schedule assist run and keep task handle (do not wrap in asyncio.create_task; @work returns a Worker)
self._current_worker = self._run_assist(message)
async def _handle_command(self, cmd: str) -> None:
"""Handle slash commands"""
@@ -2179,7 +2179,8 @@ Be concise. Use the actual data from notes."""
if self.agent and not self._is_running:
# Schedule agent mode and keep task handle
self._current_worker = asyncio.create_task(self._run_agent_mode(task))
# Schedule agent run and keep task handle (do not wrap in asyncio.create_task; @work returns a Worker)
self._current_worker = self._run_agent_mode(task)
async def _parse_crew_command(self, cmd: str) -> None:
"""Parse and execute /crew command"""
@@ -2208,7 +2209,8 @@ Be concise. Use the actual data from notes."""
self._add_user(f"/crew {target}")
self._show_sidebar()
# Schedule crew mode and keep handle
self._current_worker = asyncio.create_task(self._run_crew_mode(target))
# Schedule crew run and keep task handle (do not wrap in asyncio.create_task; @work returns a Worker)
self._current_worker = self._run_crew_mode(target)
def _show_sidebar(self) -> None:
"""Show the sidebar for crew mode."""