Skip to content

Commit 6d04b3a

Browse files
committed
claude-agent-sdk needs to be 1.12 - 1.11 is breaking the runner
Signed-off-by: sallyom <somalley@redhat.com>
1 parent a248f89 commit 6d04b3a

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

components/runners/claude-code-runner/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ dependencies = [
1212
"aiohttp>=3.8.0",
1313
"pyjwt>=2.8.0",
1414
"anthropic[vertex]>=0.68.0",
15-
"claude-agent-sdk>=0.1.4",
15+
"claude-agent-sdk==0.1.12",
1616
"langfuse>=3.0.0",
1717
"mcp-atlassian>=0.11.9",
1818
]

components/runners/claude-code-runner/wrapper.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,12 @@ async def _run_claude_agent_sdk(self, prompt: str):
312312
if artifacts_path not in add_dirs:
313313
add_dirs.append(artifacts_path)
314314
logging.info("Added artifacts directory as additional directory")
315+
316+
# Add file-uploads directory
317+
file_uploads_path = str(Path(self.context.workspace_path) / "file-uploads")
318+
if file_uploads_path not in add_dirs:
319+
add_dirs.append(file_uploads_path)
320+
logging.info("Added file-uploads directory as additional directory")
315321
elif repos_cfg:
316322
# Multi-repo mode: Prefer explicit MAIN_REPO_NAME, else use MAIN_REPO_INDEX, else default to 0
317323
main_name = (os.getenv('MAIN_REPO_NAME') or '').strip()
@@ -341,6 +347,12 @@ async def _run_claude_agent_sdk(self, prompt: str):
341347
if artifacts_path not in add_dirs:
342348
add_dirs.append(artifacts_path)
343349
logging.info("Added artifacts directory as additional directory")
350+
351+
# Add file-uploads directory for repos mode too
352+
file_uploads_path = str(Path(self.context.workspace_path) / "file-uploads")
353+
if file_uploads_path not in add_dirs:
354+
add_dirs.append(file_uploads_path)
355+
logging.info("Added file-uploads directory as additional directory")
344356
else:
345357
# No workflow and no repos: start in artifacts directory for ad-hoc work
346358
cwd_path = str(Path(self.context.workspace_path) / "artifacts")
@@ -1886,6 +1898,13 @@ def _build_workspace_context_prompt(self, repos_cfg, workflow_name, artifacts_pa
18861898
prompt += "Purpose: Create all output artifacts (documents, specs, reports) here.\n"
18871899
prompt += "This directory persists across workflows and has its own git remote.\n\n"
18881900

1901+
# File uploads directory
1902+
prompt += "## Uploaded Files Directory\n"
1903+
prompt += "Location: file-uploads/\n"
1904+
prompt += "Purpose: User-uploaded files (documents, images, PDFs, specs) for context.\n"
1905+
prompt += "These files are uploaded by users via the UI and are available for you to read and reference.\n"
1906+
prompt += "This directory persists across sessions.\n\n"
1907+
18891908
# Available repos
18901909
if repos_cfg:
18911910
prompt += "## Available Code Repositories\n"

0 commit comments

Comments
 (0)