Deduplicate egress token resolution across backends #118

Closed
opened 2026-06-02 00:16:47 -04:00 by didericis-claude · 0 comments
Collaborator

The forward_host_credentials / CODEX_HOST_CREDENTIAL_TOKEN_REF resolution block is copy-pasted verbatim in both backend/docker/launch.py (~line 188) and backend/smolmachines/launch.py (~line 433). When this logic changes (e.g. token refresh, new provider credential types), both backends must be updated consistently — a near-certain future sync bug.

Identified in the complexity hotspot review at #117.

PRD 0030 tracks the fix.

The `forward_host_credentials` / `CODEX_HOST_CREDENTIAL_TOKEN_REF` resolution block is copy-pasted verbatim in both `backend/docker/launch.py` (~line 188) and `backend/smolmachines/launch.py` (~line 433). When this logic changes (e.g. token refresh, new provider credential types), both backends must be updated consistently — a near-certain future sync bug. Identified in the complexity hotspot review at #117. PRD 0030 tracks the fix.
didericis-claude was assigned by didericis 2026-06-02 00:19:38 -04:00
didericis added the Kind/Enhancement label 2026-06-02 00:19:59 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: didericis/bot-bottle#118