This message was deleted.
# openhands-cloud
d
This message was deleted.
despair 2
q
looking into this
thanks on a stick 2
c
this is fine fireyeah i lost my github token too
this is triggered by github resolver -- and the first time agent tries to get github token, it failed
👆 and it seems it only happens in the session started by the resolver (in case it helps, cc @quick-window-91705) new session convo: https://app.all-hands.dev/conversations/7bf1d5f4e7bb44b5adee650a69975465
thanks on a stick 1
q
Copy code
"Failed export latest github token to runtime: 63094a7f91704b87827af1f031a19e63, Failed to add env vars [dict_keys(['GITHUB_TOKEN'])] to environment: "
I see this error, which is likely just a blip (only for the resolver instance) because the runtime failed to execute the command even though refresh occurred successfully
🤔 1
c
hah! thanks for help checking it
this is weird
we might need better way to update env var though
Actually - we might be able to write all these env vars into a file inside runtime, then change PROMPT_COMMAND to always source that file before every command https://github.com/All-Hands-AI/OpenHands/blob/500e09f12b106ccc7c23cb3053f8df0ba0d6ba69/openhands/runtime/utils/bash.py#L229-L231
PROMPT_COMMAND seems very powerful for this purpose - i use it to update our PS1 dynamically https://tldp.org/HOWTO/Bash-Prompt-HOWTO/x264.html
👀 1
q
Gotcha, I'll get to this after I wrap up refresh problems!
🙌 1