-
Notifications
You must be signed in to change notification settings - Fork 522
Description
Summary
opencli grok ask appears to create a new Grok conversation on every invocation, even when --new is not passed. This makes it hard to use the Grok adapter for true multi-turn conversations.
Environment
- opencli version:
1.3.3 - Browser Bridge extension: installed and connected
opencli doctor: all green- Browser: real Chrome session with Grok login reused successfully
What works
opencli doctorreports daemon / extension / connectivity are healthy.opencli grok ask "..."can successfully send a prompt and receive a response.- Grok can access live X/Twitter content through the adapter.
Problem
Although repeated opencli grok ask calls succeed, each call seems to land as a separate conversation in the Grok web UI, instead of continuing the same chat thread.
That means the current Grok adapter behaves more like a single-shot query interface than a persistent chat session.
Reproduction
- Run:
opencli grok ask "First question" --new true
- Then run:
(without
opencli grok ask "Second question that depends on the previous answer"--new true) - Check the Grok web UI history.
Actual behavior
- The second prompt appears as a new/independent conversation in the Grok UI.
- There is no reliable session continuity.
- This makes multi-turn workflows brittle, because callers must manually restate context every time.
Expected behavior
One of these should be true:
- Session continuity by default: if
--newis not passed, continue the currently active Grok conversation. - Explicit session controls: expose commands/options like
new,read,history,resume,status, or a session/thread id. - Document current behavior clearly: if Grok is intentionally single-shot, the docs/help should say so explicitly.
Why this matters
Other adapters can be used as part of longer-running agent workflows. For Grok, users may reasonably expect:
- ask once to start a thread
- ask again to continue that thread
- inspect/read the current thread
Right now, the Grok integration is great for one-off queries, but not reliable for persistent multi-turn dialogue.
Suggestion
A minimal fix would be:
- keep using
ask, but make it reuse the current active Grok thread unless--new trueis passed.
A better long-term API might be:
opencli grok newopencli grok ask <prompt>opencli grok readopencli grok historyopencli grok status
Thanks — the real-Chrome session reuse is excellent, this is just the main missing piece for conversational workflows.