-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Labels
project/tasksCoder tasksCoder tasks
Description
When a task is running, the preview server and develop.sh apps are not visible in the Tasks view, even though they appear in the Workspaces view.
Root Cause
Apps with command fields (terminal apps like develop.sh) are not properly handled in the Tasks view.
Technical Details
-
In the dogfood template (
dogfood/coder/main.tf):coder_app.develop_sh(lines 895-906) - hascommand = "screen -x develop_sh"coder_app.preview(lines 931-947) - hasurl = "http://localhost:8080"
-
In
TaskApps.tsx(site/src/pages/TaskPage/TaskApps.tsx):- Line 34-38: Apps are filtered by
task.workspace_app_idandhealth !== "disabled" - Line 239-252:
splitEmbeddedAndExternalApps()only checksapp.externalto split apps - Issue: Apps with
commandare NOT marked asexternal, so they go intoembeddedAppsarray - These command apps then try to render as iframes (lines 95-102), which doesn't work properly for terminal apps
- Line 34-38: Apps are filtered by
-
Expected behavior:
- Command apps should either be filtered out (since there's already a dedicated Terminal tab)
- Or they should be handled specially to open in the terminal tab
- Currently they likely fail to render or get lost in the iframe rendering logic
Impact
Users cannot see or access:
- The preview server app (
http://localhost:8080) - The develop.sh script app (terminal command)
Both apps work fine in the Workspaces view but are missing from the Tasks view.
Metadata
Metadata
Assignees
Labels
project/tasksCoder tasksCoder tasks