Skip to content

Commit 60d2157

Browse files
committed
fix: avoid template literals in settings JS
Switch to string concatenation to prevent f-string interpolation issues when rendering the settings page HTML on server startup.
1 parent 6a9f489 commit 60d2157

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -921,7 +921,7 @@ async def root(uid: str = Query(None)):
921921
const provider = getSelectedProvider();
922922
const label = agentProviderLabels[provider] || 'Agent';
923923
const input = document.getElementById('agentKey');
924-
input.placeholder = `${{label}} API key`;
924+
input.placeholder = label + ' API key';
925925
input.value = agentProviderKeys[provider] || '';
926926
}}
927927
@@ -1017,7 +1017,7 @@ async def root(uid: str = Query(None)):
10171017
const status = entry.success ? 'OK' : 'ERR';
10181018
const msg = entry.message || '';
10191019
const url = entry.pr_url ? ' PR: ' + entry.pr_url : '';
1020-
lines.push(`[${{entry.provider}}] ${{status}} ${{msg}}${{url}}`);
1020+
lines.push('[' + entry.provider + '] ' + status + ' ' + msg + url);
10211021
}}
10221022
logsEl.value = lines.join('\\n');
10231023
if (!logs.length && data.message) {{

0 commit comments

Comments
 (0)