Commit 0274ee7
fix: Only validate ambient-runner-secrets when Vertex AI is disabled (#418)
Fixes a regression where ambient-runner-secrets validation occurs
unconditionally, causing session creation to fail even when
CLAUDE_CODE_USE_VERTEX=1.
This fix wraps the runner secret validation in a !vertexEnabled check,
since the secret is only needed when Vertex AI is disabled. When Vertex
is enabled, the ambient-vertex secret is used instead.
Changes:
- Wrap runner secret validation in 'if !vertexEnabled' block
- Add descriptive log messages for both Vertex enabled/disabled cases
- Maintain error handling and status conditions for non-Vertex case
Signed-off-by: sallyom <somalley@redhat.com>
Co-authored-by: Claude <noreply@anthropic.com>1 parent c79118c commit 0274ee7
1 file changed
+20
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
810 | 810 | | |
811 | 811 | | |
812 | 812 | | |
813 | | - | |
814 | | - | |
815 | | - | |
816 | | - | |
817 | | - | |
818 | | - | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
819 | 830 | | |
820 | | - | |
821 | | - | |
822 | | - | |
823 | | - | |
824 | | - | |
825 | | - | |
826 | | - | |
827 | | - | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
828 | 834 | | |
829 | 835 | | |
830 | 836 | | |
| |||
0 commit comments