Skip to content

model managed by env vars and plan support #2580

Closed

Description

@notlousybook

Make the model field be changed with a "OC_MODEL" value in the vars, (not secrets), to support changing models without recommitting changes

(Not sure if this exists, i couldn't check it since it's already broken) And add plan support to the github actions to propose a plan with a todo list as a comment and other plan details, and once we approve begin the implementation, modifying the todo, and making the pr as before, and y'know

Activity

  1. changed the title [-]`model` managed my env vars[/-] [+]`model` managed by env vars and plan support[/+] on Sep 13, 2025
  2. github-actions commented on Sep 13, 2025

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    Feel free to ignore if none of these address your specific case.

  3. rekram1-node commented on Sep 13, 2025

    @rekram1-node
    Collaborator

    I noticed gh action is broken but for changing the model couldn't you do:

    name: opencode
    
    on:
      issue_comment:
        types: [created]
    
    jobs:
      opencode:
        if: |
          contains(github.event.comment.body, ' /oc') ||
          contains(github.event.comment.body, ' /opencode')
        runs-on: ubuntu-latest
        permissions:
          id-token: write
          contents: read
          pull-requests: read
          issues: read
        steps:
          - name: Checkout repository
            uses: actions/checkout@v4
    
          - name: Run opencode
            uses: sst/opencode/github@latest
            env:
              OPENCODE_API_KEY: ${{ secrets.OPENCODE_API_KEY }}
            with:
              model: ${{ vars.OC_MODEL }} 
    
  4. notlousybook commented on Sep 14, 2025

    @notlousybook
    Author

    @rekram1-node i want it to be officially supported

  5. rekram1-node commented on Dec 28, 2025

    @rekram1-node
    Collaborator

    [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