Skip to content

[FEATURE]: create new session on startup #22294

@gaardhus

Description

@gaardhus

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request 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

Metadata

Metadata

Assignees

Labels

coreAnything pertaining to core functionality of the application (opencode server stuff)discussionUsed for feature requests, proposals, ideas, etc. Open discussion

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions