feature: send prompt in a new session
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 55/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- lua
- Ambito
- api, developer-experience
Direzione di ricerca
Start at the ask(default, opts) entry point and read the session API documentation for session.create, session.switchModel, and model.list. Trace how the latest session and model are currently obtained. Done means ask can either append to the latest session or create a new one, using the latest model or opening a picker when no session exists.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Prerequisites
- I searched the docs
- I searched existing issues
Is your feature request related to a problem? Please describe.
One of the most common usecase that I have with this plugin is creating a little session to tweak. Something like a Ctrl+k feature from Cursor (not sure if it still has it). Previously on opencode v1, I was using new_session tui command, before sending the prompt. Unfortunately, opencode v2 removed the tui API, so we kinda have to target the session API.
Describe the solution you'd like
Add an option to the ask(default, opts) on whether to append the prompt to the latest session (like the current behaviour), or create a new session with that prompt.
I tested this on a local fork, but by default the create new session API will use a model from opencode go (even if you're using other providers and don't have subscription from opencode go). So, from our side, we have to know what model on that session. I'm proposing the following heuristic:
- Use the model from the latest session
- If there's no session, open a picker popup to let the user pick the model
Describe alternatives you've considered
None, the solution space is quite limited.
Additional context
https://opencode.ai/v2/docs/api#session.create
https://opencode.ai/v2/docs/api#session.switchModel
https://opencode.ai/v2/docs/api#model.list
- Lingua principale
- Lua
- Stelle
- 3.9k
- Fork
- 165
- Merge medio
- 1g 9h
- PR unite (30g)
- 3
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di nickjvandyke/opencode.nvim
-
bug: v2 service discovery misses Nix-packaged OpenCode (writes service-prod.json, plugin reads service.json)Forse già presa @taekop l’ha presa 11 giorni fa. Apertabug good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
nickjvandyke/opencode.nvim#336 ·
-
enhancement
Difficoltà 5/5 Più di una settimana Idoneità per principianti 45/100
nickjvandyke/opencode.nvim#321 · 2 commenti · 1 reazione ·
-
feature: doc/opencode.txtApertaenhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 52/100
nickjvandyke/opencode.nvim#41 · 1 commento · 9 reazioni ·
Tutte le issue di nickjvandyke/opencode.nvim
Issue simili
-
documentation good first issue help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 90/100
eugenioenko/ttt#1000 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
@ Mainmenu / Settingsmenu UI/UX Unconfirmed bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
luanti-org/luanti#17669 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 75/100
dense-analysis/ale#5174 ·
-
generateKey() defaults to a tenth of the key-stretching rounds Mudlet usesForse già presa @mpconley l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
I maintainer di solito rispondono entro 4 giorni