-
Notifications
You must be signed in to change notification settings - Fork 16k
[FEATURE]: create new session on startup #22294
Copy link
Copy link
Open
Labels
coreAnything pertaining to core functionality of the application (opencode server stuff)Anything pertaining to core functionality of the application (opencode server stuff)discussionUsed for feature requests, proposals, ideas, etc. Open discussionUsed for feature requests, proposals, ideas, etc. Open discussion
Metadata
Metadata
Assignees
Labels
coreAnything pertaining to core functionality of the application (opencode server stuff)Anything pertaining to core functionality of the application (opencode server stuff)discussionUsed for feature requests, proposals, ideas, etc. Open discussionUsed for feature requests, proposals, ideas, etc. Open discussion
Type
Fields
Give feedbackNo fields configured for issues without a type.
Feature hasn't been suggested before.
Describe the enhancement you want to request
I have developed a browser extension OpenEyes, that allows to user to select a browser element and send a screenshot along with some other metadata to an active OpenCode session.
However, when I currently start the OpenCode cli, a new session is not created before after I have send the first message. This means that in order for my extension to work, I currently have a send a dummy message (i.e. "hello") to have a new session created, which I can then select and inject the message generated by my extension in.
It would be nice if a new session was created automatically, or maybe through a flag?
These issues are somewhat related, though they are about specifying the session_id at startup time, I just want to be able to retrieve it:
#17344
#2159