chopratejas commited on
Commit
aa971c5
·
1 Parent(s): 832f85d

Fixing headroom wrap claude

Browse files
headroom/cli/wrap.py CHANGED
@@ -190,13 +190,13 @@ def claude(port: int, no_rtk: bool, no_proxy: bool, verbose: bool, claude_args:
190
  # Step 3: Launch claude
191
  click.echo()
192
  click.echo(" Launching Claude Code (API routed through Headroom)...")
193
- click.echo(f" ANTHROPIC_API_URL=http://127.0.0.1:{port}")
194
  if claude_args:
195
  click.echo(f" Extra args: {' '.join(claude_args)}")
196
  click.echo()
197
 
198
  env = os.environ.copy()
199
- env["ANTHROPIC_API_URL"] = f"http://127.0.0.1:{port}"
200
 
201
  # Run claude — this blocks until claude exits
202
  result = subprocess.run(
 
190
  # Step 3: Launch claude
191
  click.echo()
192
  click.echo(" Launching Claude Code (API routed through Headroom)...")
193
+ click.echo(f" ANTHROPIC_BASE_URL=http://127.0.0.1:{port}")
194
  if claude_args:
195
  click.echo(f" Extra args: {' '.join(claude_args)}")
196
  click.echo()
197
 
198
  env = os.environ.copy()
199
+ env["ANTHROPIC_BASE_URL"] = f"http://127.0.0.1:{port}"
200
 
201
  # Run claude — this blocks until claude exits
202
  result = subprocess.run(
headroom/rtk/installer.py CHANGED
@@ -149,7 +149,7 @@ def register_claude_hooks(rtk_path: Path | None = None) -> bool:
149
 
150
  try:
151
  result = subprocess.run(
152
- [str(rtk_path), "init", "--global"],
153
  capture_output=True,
154
  text=True,
155
  timeout=10,
 
149
 
150
  try:
151
  result = subprocess.run(
152
+ [str(rtk_path), "init", "--global", "--auto-patch"],
153
  capture_output=True,
154
  text=True,
155
  timeout=10,