-
Notifications
You must be signed in to change notification settings - Fork 11.5k
Description
Description
While making the PR #14442 I came across a TODO https://github.com/anomalyco/opencode/blob/dev/packages/opencode/src/cli/cmd/tui/routes/home.tsx#L19,
https://github.com/anomalyco/opencode/blob/dev/packages/opencode/src/cli/cmd/tui/routes/home.tsx#L79, making use of a module-scoped variable to make sure prompts passed in through navigation and the cli args only get added and submitted once.
On making my PR that allows passing session specific args to work with this, I blindly followed the TODO method but continuing with this improper code would further increase code smell and use of bad practices, so it would be nice to get it fixed as soon as possible and I can make updates on my PR.
This would also make future changes to follow the good practice not the bad one.
Plugins
None
OpenCode version
1.2.15
Steps to reproduce
No response
Screenshot and/or share link
No response
Operating System
macOS
Terminal
No response