Skip to content

Feature request: Start and continue a session with opencode run -s (modify flag behavior) #3434

@621625

Description

@621625

Hi guys,

Hope you are well.

I would like to make a feature request, I think this would be a wise and efficient design choice, even somewhat popular:

Modify the behavior of the opencode run --session flag.

Current behavior:

Input: opencode run --session ses-abc (or abc) hello
Output: "Resource not found" (if ses-abc) or "Invalid string - must start with ses" if plain abc.

Desired behavior:

Input: opencode run --session abc hello
Output: "Hello how can I be of assistance?"

Here opencode will create session abc if it doesn't exist and continue it if it exists.

Implement this, it's a good idea. Trust me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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