Add OpenCode binary selection with version detection
- Add binary selector component with dropdown and validation - Support custom OpenCode binary paths and system PATH binary - Async version checking for all binaries when selector opens - Store recent binaries with timestamps and version info - Enhanced instance creation to use selected binary - Improved storage system for binary preferences - Fixed validation to handle system PATH binaries properly
This commit is contained in:
@@ -183,7 +183,7 @@ const App: Component = () => {
|
||||
return activeSessionId().get(instance.id) || null
|
||||
})
|
||||
|
||||
async function handleSelectFolder(folderPath?: string) {
|
||||
async function handleSelectFolder(folderPath?: string, binaryPath?: string) {
|
||||
setIsSelectingFolder(true)
|
||||
try {
|
||||
let folder: string | null | undefined = folderPath
|
||||
@@ -196,7 +196,7 @@ const App: Component = () => {
|
||||
}
|
||||
|
||||
addRecentFolder(folder)
|
||||
const instanceId = await createInstance(folder)
|
||||
const instanceId = await createInstance(folder, binaryPath)
|
||||
setHasInstances(true)
|
||||
setShowFolderSelection(false)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user