Skip to content

bug(ui): "Fetch & Parse" env-import silently no-ops — request never reaches backend #2199

Closed as not planned

Description

@mrsabath

Summary

In the Import Agent (and Import Tool) flow, the "Import Environment Variables"
modal's "Fetch & Parse" button silently does nothing when given a URL — no error,
no populated variables, no visible reaction.

Steps to reproduce

  1. UI → Import Agent → Namespace team1
  2. Under Environment Variables, click Import from File/URL → From URL
  3. Enter a valid .env URL, e.g.
    https://raw.githubusercontent.com/kagenti/agent-examples/refs/heads/main/a2a/weather_service/.env.openai
  4. Click Fetch & Parse

Expected: the env vars parse and populate the form (per
authbridge/demos/weather-agent/demo-ui.md Step 2).
Actual: nothing happens — the modal does not populate, show an error, or close.

Diagnosis

The request never reaches the backend. Tailing the backend during the click shows only
health/ready probes — no POST /agents/fetch-env-url arrives:

INFO: … "GET /ready HTTP/1.1" 200 OK
INFO: … "GET /health HTTP/1.1" 200 OK
(no fetch-env-url entry on click)

So the failure is client-side. In kagenti/ui-v2/src/components/EnvImportModal.tsx
(~L118–140), the handler awaits agentService.fetchEnvFromUrl(url) →
agentService.parseEnvFile(...) inside a try/catch. Since the backend call is never
made, the call is likely throwing/short-circuiting before dispatch (or the button's
handler isn't firing) — and the catch isn't surfacing anything to the user either, so
it fails silently.

Likely candidates: the click handler not wired, an exception before the fetch
(e.g. URL validation or a bad agentService base URL), or a swallowed error that never
sets the modal's error state.

Impact

Users following the documented demo path can't import env vars from a URL. Workaround:
add the variables manually via "Add Variable" (Direct Value + Secret-ref types),
which works — but the documented URL-import path is broken.

Environment

  • kagenti main, UI ui-v2
  • Kind install via setup-kagenti.sh --with-spire --with-ui --with-backend
  • Reproduced 2026-07-13

Assisted-By: Claude Code

Activity

  1. github-actions commented on Sep 15, 2026

    @github-actions

    This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. If this issue is still relevant, please comment or remove the stale label.

  2. github-actions commented on Sep 29, 2026

    @github-actions

    This issue was closed because it has been stale for 14 days with no activity. Feel free to reopen if this is still relevant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions