Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "hatchling.build"

[project]
name = "codefa"
version = "1.2.51"
version = "1.2.53"
description = "Local proxy connecting coding agents to OpenAI-compatible AI providers"
readme = "README.md"
requires-python = ">=3.14.0"
Expand Down
17 changes: 7 additions & 10 deletions src/codefa/api/admin_static/admin.css
Original file line number Diff line number Diff line change
Expand Up @@ -163,15 +163,13 @@ textarea {
display: flex;
align-items: center;
justify-content: center;
width: 40px;
height: 40px;
border-radius: 50%;
height: 32px;
width: auto;
background: transparent;
border: none;
box-shadow: none;
padding: 0;
flex-shrink: 0;
overflow: hidden;
transition: transform var(--transition-fast);
}

Expand All @@ -180,10 +178,10 @@ textarea {
}

.brand-logo-img {
width: 100%;
height: 100%;
object-fit: cover;
border-radius: 50%;
height: 32px;
width: auto;
max-width: 36px;
object-fit: contain;
display: block;
}

Expand Down Expand Up @@ -1092,8 +1090,7 @@ html[data-theme="light"] .action-bar {
}

.brand-mark {
width: 36px;
height: 36px;
height: 28px;
}

.main {
Expand Down
13 changes: 10 additions & 3 deletions src/codefa/api/admin_static/admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -453,9 +453,16 @@ function inputForField(field) {
input.type = field.type === "number" ? "number" : "text";
if (field.type === "secret") {
input.type = "password";
input.placeholder = field.configured
? "Configured - enter a new value to replace"
: "Not configured";
const isProxy = (field.key || "").endsWith("_PROXY");
if (isProxy) {
input.placeholder = field.configured
? "Configured - enter new proxy or leave empty"
: "Optional - leave empty for direct connection";
} else {
input.placeholder = field.configured
? "Configured - enter a new API Key to replace"
: "Not configured - enter API Key";
}
input.value = "";
input.autocomplete = "off";
} else {
Expand Down
6 changes: 5 additions & 1 deletion src/codefa/config/admin/provider_manifest.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,12 +237,16 @@ def _proxy_field_specs() -> tuple[dict[str, Any], ...]:
specs.append(
{
"key": _settings_env_key(descriptor.proxy_attr),
"label": f"{descriptor.display_name} Proxy",
"label": f"{descriptor.display_name} Proxy (Optional)",
"section_id": "providers",
"field_type": "secret",
"settings_attr": descriptor.proxy_attr,
"secret": True,
"advanced": True,
"description": (
f"Optional HTTP/SOCKS5 proxy URL for {descriptor.display_name} "
"(leave empty for direct connection)."
),
}
)
return tuple(specs)
Expand Down
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading