Skip to content

Codex/fix issues 119 183 - #195

Merged
hm1229 merged 4 commits into
mainfrom
codex/fix-issues-119-183
Aug 19, 2026
Merged

Codex/fix issues 119 183#195
hm1229 merged 4 commits into
mainfrom
codex/fix-issues-119-183

Conversation

@hm1229

@hm1229 hm1229 commented Aug 19, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

.where(
ScheduledTask.status == "active",
ScheduledTask.next_run_at <= now, # type: ignore[operator]
or_(ScheduledTask.end_at == None, ScheduledTask.end_at >= now), # noqa: E711
ScheduledTask.id == task_id,
ScheduledTask.status == "active",
ScheduledTask.next_run_at <= now, # type: ignore[operator]
or_(ScheduledTask.end_at == None, ScheduledTask.end_at >= now), # noqa: E711
_authorize(settings.codex_a2a_token, authorization)
task = _require_task(task_id)
root = Path(str(task.request_json.get("workspace") or "")).resolve()
target = (root / artifact_path).resolve()
task = _require_task(task_id)
root = Path(str(task.request_json.get("workspace") or "")).resolve()
target = (root / artifact_path).resolve()
if root not in target.parents or not target.is_file():
target = (root / artifact_path).resolve()
if root not in target.parents or not target.is_file():
raise HTTPException(status_code=404, detail="Artifact not found")
return FileResponse(target, filename=target.name)
target_root.mkdir(parents=True, exist_ok=True)
target = target_root / filename
suffix = 2
while target.exists():
while target.exists():
target = target_root / f"{Path(filename).stem}-{suffix}{Path(filename).suffix}"
suffix += 1
target.write_bytes(content)
except HTTPException:
raise
except Exception as exc:
return JSONResponse(_error_envelope(request_id, -32000, str(exc)), status_code=500)
@hm1229
hm1229 merged commit e527fa3 into main Aug 19, 2026
5 of 6 checks passed
@hm1229
hm1229 deleted the codex/fix-issues-119-183 branch August 19, 2026 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants