Skip to content

Commit 6d7fea0

Browse files
authored
Minimal styling for TUI (#1206)
1 parent 1a13544 commit 6d7fea0

File tree

4 files changed

+580
-265
lines changed

4 files changed

+580
-265
lines changed

.claude/settings.local.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"permissions": {
3+
"allow": [
4+
"mcp__codegen-tools__linear_get_teams",
5+
"mcp__codegen-tools__linear_search_issues",
6+
"mcp__codegen-tools__linear_create_issue"
7+
],
8+
"deny": [],
9+
"ask": []
10+
}
11+
}

src/codegen/cli/commands/claude/main.py

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,29 +4,25 @@
44
import signal
55
import subprocess
66
import sys
7-
import threading
8-
import time
97

108
import requests
119
import typer
1210
from rich import box
11+
from rich.console import Console
1312
from rich.panel import Panel
1413

15-
1614
from codegen.cli.api.endpoints import API_ENDPOINT
1715
from codegen.cli.auth.token_manager import get_current_token
1816
from codegen.cli.commands.claude.claude_log_watcher import ClaudeLogWatcherManager
1917
from codegen.cli.commands.claude.claude_session_api import end_claude_session, generate_session_id
2018
from codegen.cli.commands.claude.config.mcp_setup import add_codegen_mcp_server, cleanup_codegen_mcp_server
2119
from codegen.cli.commands.claude.hooks import cleanup_claude_hook, ensure_claude_hook, get_codegen_url
2220
from codegen.cli.commands.claude.quiet_console import console
23-
from rich.console import Console
24-
25-
t_console = Console()
26-
2721
from codegen.cli.rich.spinners import create_spinner
2822
from codegen.cli.utils.org import resolve_org_id
2923

24+
t_console = Console()
25+
3026

3127
def _run_claude_background(resolved_org_id: int, prompt: str | None) -> None:
3228
"""Create a background agent run with Claude context and exit."""
@@ -208,9 +204,9 @@ def claude(
208204
raise typer.Exit(1)
209205

210206
if background is not None:
211-
# Use the value from --background as the prompt, with --prompt as fallback
212-
final_prompt = background or prompt
207+
# Use the value from --background as the prompt
208+
final_prompt = background
213209
_run_claude_background(resolved_org_id, final_prompt)
214210
return
215211

216-
_run_claude_interactive(resolved_org_id, no_mcp)
212+
_run_claude_interactive(resolved_org_id, no_mcp)

0 commit comments

Comments
 (0)