GenkitG
Genkitβ€’4mo agoβ€’
1 reply
brilliant-lime

hi, i am working on a web app chat

hi, i am working on a web app chat interface with an LLM. so far so good πŸ˜‰

my web app runs on its own port, and i start it like this:

genkit start -- go run main.go

the web app works fine, and i really like the UI flow at http://localhost:4000/
it lets me make quicker iterative changes in the flows and prompts.

my problem is that it’s really hit or miss to get the latest version of the app running in genkit's webui. when it does, genkit webui on the top of the pages shows the name and the process ID found in /tmp/go-build3621574931/b001/exe/main or sometimes in ~/.cache/go-build/...

sometimes it just complaints how it can't find it (attached screenshot)

occasionally, it panics with an error like this:
2025/10/10 14:11:43 http: panic serving 127.0.0.1:40944: genkit.Init: reflection server startup failed: failed to create listener: listen tcp 127.0.0.1:3100: bind: address already in use

i try to find processes with go-build in its name and make sure there's none before i run genkit. it's kind of annoying to do all that dance in order to do something so much more interesting πŸ˜‰

how do you approach this? any hints?
Screenshot_20251010_141105.png
Was this page helpful?