Skip to content

opencode + grok code fast in distrobox hangs. #2472

Closed

Description

@nixedit

hello,

I just started using opencode with grok code fast 1. I originally configured a distrobox (arch client) and installed opencode-bin inside the distrobox. when I choose the grok code fast 1, and give it the prompt:

write a cpp program to display the numbers 1 to 100 on the screen. compile the program ensuring there are 0 errors, if there are
errors, fix them. DO NOT run the program. when there are 0 errors provide me instructions on how to run the program.

I starts to write the program and hangs indefinitely. I have to interrupt it (ESC twice), I can never get it to create the code.

when I run opencode on my host system (arch linux) and give it the same prompt opencode with grok code fast 1 finishes the task at hand.

I'm not sure where it's hanging up.

has anyone else experienced this?

what other info can I provide to help figure out what's going on?

Activity

  1. rekram1-node commented on Sep 7, 2025

    @rekram1-node
    Contributor

    what happens if you run:

    opencode run "hello" --model opencode/grok-code --print-logs
    

    on the system having trouble

  2. nixedit commented on Sep 7, 2025

    @nixedit
    Author
    `-> opencode run "hello" --model opencode/grok-code --print-logs
    INFO  2025-09-07T21:29:29 +86ms service=default version=0.5.29 args=["run","hello","--model","opencode/grok-code","--print-logs"] opencode
    INFO  2025-09-07T21:29:29 +1ms service=app cwd=/dmnt/localdata/dbox-data/aicode/test creating
    INFO  2025-09-07T21:29:29 +1ms service=app git
    INFO  2025-09-07T21:29:29 +1ms service=app name=plugin registering service
    INFO  2025-09-07T21:29:29 +2ms service=app name=config registering service
    INFO  2025-09-07T21:29:29 +1ms service=config path=/dmnt/localdata/dbox-data/.config/opencode/config.json loading
    INFO  2025-09-07T21:29:29 +1ms service=config path=/dmnt/localdata/dbox-data/.config/opencode/opencode.json loading
    INFO  2025-09-07T21:29:29 +0ms service=config path=/dmnt/localdata/dbox-data/.config/opencode/opencode.jsonc loading
    INFO  2025-09-07T21:29:29 +1ms service=config agent={} mode={} command={} plugin=[] username=drave loaded
    INFO  2025-09-07T21:29:29 +0ms service=plugin path=opencode-copilot-auth@0.0.2 loading plugin
    INFO  2025-09-07T21:29:29 +1ms service=plugin path=opencode-anthropic-auth@0.0.2 loading plugin
    INFO  2025-09-07T21:29:29 +13ms service=bus type=* subscribing
    INFO  2025-09-07T21:29:29 +0ms service=app name=bus registering service
    INFO  2025-09-07T21:29:29 +0ms service=bus type=storage.write subscribing
    INFO  2025-09-07T21:29:29 +0ms service=format init
    INFO  2025-09-07T21:29:29 +0ms service=bus type=file.edited subscribing
    INFO  2025-09-07T21:29:29 +0ms service=config.hooks init
    INFO  2025-09-07T21:29:29 +0ms service=bus type=file.edited subscribing
    INFO  2025-09-07T21:29:29 +0ms service=bus type=session.idle subscribing
    INFO  2025-09-07T21:29:29 +0ms service=app name=lsp registering service
    INFO  2025-09-07T21:29:29 +1ms service=session id=ses_6d9ea77c4ffejd3lZ6fuhBSWuU version=0.5.29 title=New session - 2025-09-07T21:29:29.403Z time={"created":1757280569403,"updated":1757280569403} created
    INFO  2025-09-07T21:29:29 +0ms service=app name=session registering service
    INFO  2025-09-07T21:29:29 +0ms service=app name=storage registering service
    INFO  2025-09-07T21:29:29 +0ms service=lsp serverIds=typescript, vue, eslint, golang, ruby-lsp, pyright, elixir-ls, zls, csharp, rust, clangd enabled LSP servers
    INFO  2025-09-07T21:29:29 +2ms service=bus type=storage.write publishing
    INFO  2025-09-07T21:29:29 +0ms service=bus type=session.updated publishing
    INFO  2025-09-07T21:29:29 +0ms service=app name=agent registering service
    INFO  2025-09-07T21:29:29 +1ms service=bus type=message.part.updated subscribing
    INFO  2025-09-07T21:29:29 +0ms service=bus type=session.error subscribing
    INFO  2025-09-07T21:29:29 +1ms service=session session=ses_6d9ea77c4ffejd3lZ6fuhBSWuU chatting
    INFO  2025-09-07T21:29:29 +1ms service=bus type=storage.write publishing
    INFO  2025-09-07T21:29:29 +0ms service=bus type=message.updated publishing
    INFO  2025-09-07T21:29:29 +0ms service=bus type=storage.write publishing
    INFO  2025-09-07T21:29:29 +0ms service=bus type=message.part.updated publishing
    INFO  2025-09-07T21:29:29 +0ms service=bus type=storage.write publishing
    INFO  2025-09-07T21:29:29 +1ms service=bus type=session.updated publishing
    INFO  2025-09-07T21:29:29 +0ms service=app name=provider registering service
    INFO  2025-09-07T21:29:29 +1ms service=models.dev file={} refreshing
    INFO  2025-09-07T21:29:29 +2ms service=provider init
    INFO  2025-09-07T21:29:29 +0ms service=provider providerID=xai found
    INFO  2025-09-07T21:29:29 +1ms service=provider providerID=opencode found
    INFO  2025-09-07T21:29:29 +0ms service=provider providerID=opencode modelID=grok-code getModel
    INFO  2025-09-07T21:29:29 +0ms service=provider status=started providerID=opencode getSDK
    INFO  2025-09-07T21:29:29 +45ms service=provider status=completed duration=45 providerID=opencode getSDK
    INFO  2025-09-07T21:29:29 +1ms service=provider providerID=opencode modelID=grok-code found
    INFO  2025-09-07T21:29:29 +2ms service=session session=ses_6d9ea77c4ffejd3lZ6fuhBSWuU sessionID=ses_6d9ea77c4ffejd3lZ6fuhBSWuU locking
    INFO  2025-09-07T21:29:29 +7ms service=bus type=storage.write publishing
    INFO  2025-09-07T21:29:29 +0ms service=bus type=message.updated publishing
    INFO  2025-09-07T21:29:29 +1ms service=app name=mcp registering service
    INFO  2025-09-07T21:29:29 +6ms service=session session=ses_6d9ea77c4ffejd3lZ6fuhBSWuU type=start part
    INFO  2025-09-07T21:29:30 +531ms service=session session=ses_6d9ea77c4ffejd3lZ6fuhBSWuU type=start-step part
    INFO  2025-09-07T21:29:30 +0ms service=bus type=storage.write publishing
    INFO  2025-09-07T21:29:30 +0ms service=bus type=message.part.updated publishing
    INFO  2025-09-07T21:29:30 +0ms service=session session=ses_6d9ea77c4ffejd3lZ6fuhBSWuU type=reasoning-start part
    INFO  2025-09-07T21:29:30 +0ms service=session session=ses_6d9ea77c4ffejd3lZ6fuhBSWuU type=reasoning-delta part
    INFO  2025-09-07T21:29:30 +1ms service=bus type=storage.write publishing
    INFO  2025-09-07T21:29:30 +0ms service=bus type=message.part.updated publishing
    INFO  2025-09-07T21:29:30 +36ms service=session session=ses_6d9ea77c4ffejd3lZ6fuhBSWuU type=reasoning-delta part
    INFO  2025-09-07T21:29:30 +0ms service=bus type=storage.write publishing
    INFO  2025-09-07T21:29:30 +0ms service=bus type=message.part.updated publishing
    INFO  2025-09-07T21:29:30 +1ms service=session session=ses_6d9ea77c4ffejd3lZ6fuhBSWuU type=reasoning-delta part
    INFO  2025-09-07T21:29:30 +1ms service=bus type=storage.write publishing
    INFO  2025-09-07T21:29:30 +0ms service=bus type=message.part.updated publishing
    INFO  2025-09-07T21:29:30 +7ms service=session session=ses_6d9ea77c4ffejd3lZ6fuhBSWuU type=reasoning-delta part
    INFO  2025-09-07T21:29:30 +1ms service=bus type=storage.write publishing
    INFO  2025-09-07T21:29:30 +0ms service=bus type=message.part.updated publishing
    INFO  2025-09-07T21:29:30 +0ms service=session session=ses_6d9ea77c4ffejd3lZ6fuhBSWuU type=reasoning-delta part
    INFO  2025-09-07T21:29:30 +2ms service=bus type=storage.write publishing
    INFO  2025-09-07T21:29:30 +0ms service=bus type=message.part.updated publishing
    INFO  2025-09-07T21:29:30 +29ms service=session session=ses_6d9ea77c4ffejd3lZ6fuhBSWuU type=reasoning-delta part
    INFO  2025-09-07T21:29:30 +1ms service=bus type=storage.write publishing
    INFO  2025-09-07T21:29:30 +0ms service=bus type=message.part.updated publishing
    INFO  2025-09-07T21:29:30 +0ms service=session session=ses_6d9ea77c4ffejd3lZ6fuhBSWuU type=reasoning-delta part
    INFO  2025-09-07T21:29:30 +1ms service=bus type=storage.write publishing
    INFO  2025-09-07T21:29:30 +0ms service=bus type=message.part.updated publishing
    INFO  2025-09-07T21:29:30 +0ms service=session session=ses_6d9ea77c4ffejd3lZ6fuhBSWuU type=reasoning-delta part
    INFO  2025-09-07T21:29:30 +1ms service=bus type=storage.write publishing
    INFO  2025-09-07T21:29:30 +0ms service=bus type=message.part.updated publishing
    INFO  2025-09-07T21:29:30 +0ms service=session session=ses_6d9ea77c4ffejd3lZ6fuhBSWuU type=reasoning-delta part
    INFO  2025-09-07T21:29:30 +1ms service=bus type=storage.write publishing
    INFO  2025-09-07T21:29:30 +0ms service=bus type=message.part.updated publishing
    INFO  2025-09-07T21:29:30 +0ms service=session session=ses_6d9ea77c4ffejd3lZ6fuhBSWuU type=reasoning-delta part
    INFO  2025-09-07T21:29:30 +0ms service=bus type=storage.write publishing
    INFO  2025-09-07T21:29:30 +0ms service=bus type=message.part.updated publishing
    INFO  2025-09-07T21:29:30 +0ms service=session session=ses_6d9ea77c4ffejd3lZ6fuhBSWuU type=reasoning-delta part
    INFO  2025-09-07T21:29:30 +0ms service=bus type=storage.write publishing
    INFO  2025-09-07T21:29:30 +0ms service=bus type=message.part.updated publishing
    INFO  2025-09-07T21:29:30 +0ms service=session session=ses_6d9ea77c4ffejd3lZ6fuhBSWuU type=reasoning-delta part
    INFO  2025-09-07T21:29:30 +0ms service=bus type=storage.write publishing
    INFO  2025-09-07T21:29:30 +0ms service=bus type=message.part.updated publishing
    INFO  2025-09-07T21:29:30 +7ms service=session session=ses_6d9ea77c4ffejd3lZ6fuhBSWuU type=reasoning-delta part
    INFO  2025-09-07T21:29:30 +1ms service=bus type=storage.write publishing
    INFO  2025-09-07T21:29:30 +0ms service=bus type=message.part.updated publishing
    INFO  2025-09-07T21:29:30 +525ms service=session session=ses_6d9ea77c4ffejd3lZ6fuhBSWuU type=text-start part
    INFO  2025-09-07T21:29:30 +0ms service=session session=ses_6d9ea77c4ffejd3lZ6fuhBSWuU type=text-delta part
    INFO  2025-09-07T21:29:30 +1ms service=bus type=storage.write publishing
    INFO  2025-09-07T21:29:30 +0ms service=bus type=message.part.updated publishing
    INFO  2025-09-07T21:29:30 +22ms service=session session=ses_6d9ea77c4ffejd3lZ6fuhBSWuU type=text-delta part
    INFO  2025-09-07T21:29:30 +0ms service=bus type=storage.write publishing
    INFO  2025-09-07T21:29:30 +0ms service=bus type=message.part.updated publishing
    INFO  2025-09-07T21:29:30 +0ms service=session session=ses_6d9ea77c4ffejd3lZ6fuhBSWuU type=text-delta part
    INFO  2025-09-07T21:29:30 +2ms service=bus type=storage.write publishing
    INFO  2025-09-07T21:29:30 +0ms service=bus type=message.part.updated publishing
    INFO  2025-09-07T21:29:30 +14ms service=session session=ses_6d9ea77c4ffejd3lZ6fuhBSWuU type=text-delta part
    INFO  2025-09-07T21:29:30 +0ms service=bus type=storage.write publishing
    INFO  2025-09-07T21:29:30 +0ms service=bus type=message.part.updated publishing
    INFO  2025-09-07T21:29:30 +0ms service=session session=ses_6d9ea77c4ffejd3lZ6fuhBSWuU type=text-delta part
    INFO  2025-09-07T21:29:30 +2ms service=bus type=storage.write publishing
    INFO  2025-09-07T21:29:30 +0ms service=bus type=message.part.updated publishing
    INFO  2025-09-07T21:29:30 +0ms service=session session=ses_6d9ea77c4ffejd3lZ6fuhBSWuU type=text-delta part
    INFO  2025-09-07T21:29:30 +0ms service=bus type=storage.write publishing
    INFO  2025-09-07T21:29:30 +0ms service=bus type=message.part.updated publishing
    INFO  2025-09-07T21:29:30 +0ms service=session session=ses_6d9ea77c4ffejd3lZ6fuhBSWuU type=text-delta part
    INFO  2025-09-07T21:29:30 +0ms service=bus type=storage.write publishing
    INFO  2025-09-07T21:29:30 +0ms service=bus type=message.part.updated publishing
    INFO  2025-09-07T21:29:30 +37ms service=session session=ses_6d9ea77c4ffejd3lZ6fuhBSWuU type=text-delta part
    INFO  2025-09-07T21:29:30 +1ms service=bus type=storage.write publishing
    INFO  2025-09-07T21:29:30 +0ms service=bus type=message.part.updated publishing
    INFO  2025-09-07T21:29:30 +0ms service=session session=ses_6d9ea77c4ffejd3lZ6fuhBSWuU type=text-delta part
    INFO  2025-09-07T21:29:30 +1ms service=bus type=storage.write publishing
    INFO  2025-09-07T21:29:30 +0ms service=bus type=message.part.updated publishing
    INFO  2025-09-07T21:29:30 +0ms service=session session=ses_6d9ea77c4ffejd3lZ6fuhBSWuU type=text-delta part
    INFO  2025-09-07T21:29:30 +1ms service=bus type=storage.write publishing
    INFO  2025-09-07T21:29:30 +0ms service=bus type=message.part.updated publishing
    INFO  2025-09-07T21:29:30 +0ms service=session session=ses_6d9ea77c4ffejd3lZ6fuhBSWuU type=text-delta part
    INFO  2025-09-07T21:29:30 +0ms service=bus type=storage.write publishing
    INFO  2025-09-07T21:29:30 +0ms service=bus type=message.part.updated publishing
    INFO  2025-09-07T21:29:30 +0ms service=session session=ses_6d9ea77c4ffejd3lZ6fuhBSWuU type=text-delta part
    INFO  2025-09-07T21:29:30 +0ms service=bus type=storage.write publishing
    INFO  2025-09-07T21:29:30 +0ms service=bus type=message.part.updated publishing
    INFO  2025-09-07T21:29:30 +47ms service=session session=ses_6d9ea77c4ffejd3lZ6fuhBSWuU type=reasoning-end part
    INFO  2025-09-07T21:29:30 +2ms service=bus type=storage.write publishing
    INFO  2025-09-07T21:29:30 +0ms service=bus type=message.part.updated publishing
    INFO  2025-09-07T21:29:30 +0ms service=session session=ses_6d9ea77c4ffejd3lZ6fuhBSWuU type=text-end part
    INFO  2025-09-07T21:29:30 +0ms service=bus type=storage.write publishing
    INFO  2025-09-07T21:29:30 +0ms service=bus type=message.part.updated publishing
    
    Hello! How can I help with your software engineering tasks?
    
    INFO  2025-09-07T21:29:30 +0ms service=session session=ses_6d9ea77c4ffejd3lZ6fuhBSWuU type=finish-step part
    INFO  2025-09-07T21:29:30 +1ms service=bus type=storage.write publishing
    INFO  2025-09-07T21:29:30 +0ms service=bus type=message.part.updated publishing
    INFO  2025-09-07T21:29:30 +0ms service=bus type=storage.write publishing
    INFO  2025-09-07T21:29:30 +0ms service=bus type=message.updated publishing
    INFO  2025-09-07T21:29:30 +0ms service=session session=ses_6d9ea77c4ffejd3lZ6fuhBSWuU type=finish part
    INFO  2025-09-07T21:29:30 +1ms service=bus type=storage.write publishing
    INFO  2025-09-07T21:29:30 +0ms service=bus type=message.updated publishing
    INFO  2025-09-07T21:29:30 +0ms service=bus type=storage.write publishing
    INFO  2025-09-07T21:29:30 +0ms service=bus type=message.updated publishing
    INFO  2025-09-07T21:29:30 +0ms service=session session=ses_6d9ea77c4ffejd3lZ6fuhBSWuU sessionID=ses_6d9ea77c4ffejd3lZ6fuhBSWuU unlocking
    INFO  2025-09-07T21:29:30 +0ms service=bus type=session.idle publishing
    INFO  2025-09-07T21:29:30 +0ms service=app name=lsp shutdown
    INFO  2025-09-07T21:29:30 +1ms service=app name=session shutdown
    INFO  2025-09-07T21:29:30 +0ms service=app name=mcp shutdown
    INFO  2025-09-07T21:29:43 +13030ms service=bus type=storage.write publishing
    INFO  2025-09-07T21:29:43 +0ms service=bus type=session.updated `publishing``
    
    
    

    and then it drops me back to the command line.

  3. rekram1-node commented on Sep 7, 2025

    @rekram1-node
    Contributor

    hm well it at least works in headless mode can you run it in tui mode and send me the latest log file afterwards, like try to send prompt and whatnot if it hangs just escape and send latest log.

    You can run:

    opencode debug paths

    to see where they are stored

  4. nixedit commented on Sep 8, 2025

    @nixedit
    Author

    hm well it at least works in headless mode can you run it in tui mode and send me the latest log file afterwards, like try to send prompt and whatnot if it hangs just escape and send latest log.

    You can run:

    opencode debug paths

    to see where they are stored

    thanx, I just attached the log here.

    2025-09-08T025243.log

  5. rekram1-node commented on Sep 8, 2025

    @rekram1-node
    Contributor

    ah so it only hangs w/ tui. seems like it may be tui specific not backend specific then

  6. nixedit commented on Sep 8, 2025

    @nixedit
    Author

    ah so it only hangs w/ tui. seems like it may be tui specific not backend specific then

    actually, I gave it the same query from the command line:

    opencode run "write a cpp program to display the numbers 1-100 on the screen. compile the program, if there are error, debug and recompile. DO NOT run the program. when done compile, please provide instructions on how to run the program." --model opencode/grok-code --print-logs

    and it hung, I had to ctrl+c to stop operation.

  7. rekram1-node commented on Sep 8, 2025

    @rekram1-node
    Contributor

    did it print any logs

  8. nixedit commented on Sep 8, 2025

    @nixedit
    Author

    did it print any logs

    no logs were printed when I ran it from terminal. I reran again just to make sure and there are no logs.

  9. rekram1-node commented on Dec 28, 2025

    @rekram1-node
    Contributor

    [automated] Closing due to 90+ days of inactivity. Feel free to reopen if you still need this!

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions