Skip to content

Claude Code hangs at API Request on VsCode/Code-ServerΒ #5097

@flyguy7299

Description

@flyguy7299

App Version

Version: 3.21.5 (653104b)

API Provider

Anthropic

Model Used

claude 4 opus

πŸ” Steps to Reproduce

  1. Code-Server VSCode on my server accessed through browser.
  2. Write a prompt and it starts for a bit then hangs
  3. Sometimes it works and task is completed. Sometimes it doesnt and just hang indefinetly
  4. I use roo on Trae with Claude Code and doesnt have this problem. Every command is executed and API Reqeustr works

πŸ’₯ Outcome Summary

On Code-Server - VsCode, Roo just hangs when using claude code and once in a while it manage to completes the task, but most of the time it just hangs at API Request and nothing happens. Stop the task manually and start it again results in the same thing.

I have local Trae that SSH into my files where vscode code server is located, and when i use Roo with Claude Code, it works perfectly.

πŸ“„ Relevant Logs or Errors (Optional)

The Hang API Request


[TASK RESUMPTION] This task was interrupted 49 minutes ago. It may or may not be complete, so please reassess the task context. Be aware that the project state may have changed since then. If the task has not been completed, retry the last step before interruption and proceed with completing the task.

Note: If you previously attempted a tool use that the user did not provide a result for, you should assume the tool use was not successful and assess whether you should retry. If the last tool was a browser_action, the browser has been closed and you must launch a new browser if needed.

New instructions for task continuation:
<user_message>
did u remove the exisiting model? Because its missing now
</user_message>

<environment_details>
# VSCode Visible Files
automation-dashboard/src/app/api/ml/models/[id]/route.ts

# VSCode Open Tabs
automation-dashboard/src/app/api/ml/models/[id]/route.ts

# Current Time
6/25/2025, 3:07:49 AM (UTC, UTC+0:00)

# Current Context Size (Tokens)
62,567 (31%)

# Current Cost
$0.00

# Current Mode
<slug>ask</slug>
<name>❓ Ask</name>
<model>claude-opus-4-20250514</model>


NOTE: You are currently in '❓ Ask' mode, which does not allow write operations. To write files, the user will need to switch to a mode that supports file writing, such as 'πŸ’» Code' mode.

# Current Workspace Directory (/home/igel_o_ide/Projects/Automation Dashboard) Files
automation-dashboard/
automation-dashboard/Dashboard/
automation-dashboard/Dashboard/automation-dashboard/
automation-dashboard/Dashboard/automation-dashboard/src/
automation-dashboard/Dashboard/automation-dashboard/src/app/
automation-dashboard/Dashboard/automation-dashboard/src/app/api/
automation-dashboard/Dashboard/automation-dashboard/src/app/api/ml/
automation-dashboard/Dashboard/automation-dashboard/src/app/api/ml/automl/
automation-dashboard/Dashboard/automation-dashboard/src/app/api/ml/automl/true-godmode/
automation-dashboard/Dashboard/automation-dashboard/src/app/api/ml/automl/true-godmode/status/
automation-dashboard/Dashboard/automation-dashboard/src/app/api/ml/automl/true-godmode/status//[jobId/]/
automation-dashboard/docs/
automation-dashboard/ml-service/
automation-dashboard/ml-service/models/
automation-dashboard/prisma/
automation-dashboard/prisma/migrations/
automation-dashboard/prisma/migrations/20250524191245_init/
automation-dashboard/prisma/migrations/20250526013623_add_integration_config/
automation-dashboard/prisma/migrations/20250526031339_add_battery_entity_mapping/
automation-dashboard/prisma/migrations/20250526161339_add_property_model/
automation-dashboard/prisma/migrations/20250527102041_add_room_status_tracking/
automation-dashboard/public/
automation-dashboard/scripts/
automation-dashboard/src/
automation-dashboard/src/app/
automation-dashboard/src/app/api/
automation-dashboard/src/app/api/alerts/
automation-dashboard/src/app/api/analytics/
automation-dashboard/src/app/api/analytics/collection/
automation-dashboard/src/app/api/analytics/collection/start/
automation-dashboard/src/app/api/analytics/collection/trigger/
automation-dashboard/src/app/api/analytics/cron/
automation-dashboard/src/app/api/analytics/data/
automation-dashboard/src/app/api/analytics/device-state/
automation-dashboard/src/app/api/analytics/historical/
automation-dashboard/src/app/api/analytics/maintenance/
automation-dashboard/src/app/api/analytics/metrics/
automation-dashboard/src/app/api/analytics/seed/
automation-dashboard/src/app/api/analytics/stream/
automation-dashboard/src/app/api/audit-logs/
automation-dashboard/src/app/api/auth/
automation-dashboard/src/app/api/auth/sync-user/
automation-dashboard/src/app/api/debug/
automation-dashboard/src/app/api/debug/clear-hostex/
automation-dashboard/src/app/api/debug/clear-no-reservation-alerts/
automation-dashboard/src/app/api/debug/config/
automation-dashboard/src/app/api/debug/historical-data/
automation-dashboard/src/app/api/debug/hostex-config/
automation-dashboard/src/app/api/debug/migrate-alerts/
automation-dashboard/src/app/api/devices/
automation-dashboard/src/app/api/devices/[id]/
automation-dashboard/src/app/api/devices/[id]/lock/
automation-dashboard/src/app/api/devices/[id]/switch/
automation-dashboard/src/app/api/devices/home-assistant/
automation-dashboard/src/app/api/devices/home-assistant/config/
automation-dashboard/src/app/api/devices/home-assistant/state/
automation-dashboard/src/app/api/devices/home-assistant/state/[entityId]/
automation-dashboard/src/app/api/devices/home-assistant/test/
automation-dashboard/src/app/api/devices/state-change/
automation-dashboard/src/app/api/hostex/
automation-dashboard/src/app/api/hostex/properties/
automation-dashboard/src/app/api/hostex/test/
automation-dashboard/src/app/api/integrations/
automation-dashboard/src/app/api/integrations/[service]/
automation-dashboard/src/app/api/ml/
automation-dashboard/src/app/api/ml/auto-discover/
automation-dashboard/src/app/api/ml/automation/
automation-dashboard/src/app/api/ml/automation/start/
automation-dashboard/src/app/api/ml/automation/stop/
automation-dashboard/src/app/api/ml/automl/
automation-dashboard/src/app/api/ml/automl/analyze-database/
automation-dashboard/src/app/api/ml/automl/discover-targets/
automation-dashboard/src/app/api/ml/automl/train-comprehensive/
automation-dashboard/src/app/api/ml/automl/true-godmode/
automation-dashboard/src/app/api/ml/automl/true-godmode/status/
automation-dashboard/src/app/api/ml/automl/true-godmode/status/[jobId]/
automation-dashboard/src/app/api/ml/config/
automation-dashboard/src/app/api/ml/data/
automation-dashboard/src/app/api/ml/discover/
automation-dashboard/src/app/api/ml/insights/
automation-dashboard/src/app/api/ml/insights/cost-savings/
automation-dashboard/src/app/api/ml/jobs/
automation-dashboard/src/app/api/ml/models/
automation-dashboard/src/app/api/ml/models/[id]/
automation-dashboard/src/app/api/ml/models/[id]/activate/
automation-dashboard/src/app/api/ml/models/[id]/features/
automation-dashboard/src/app/api/ml/models/[id]/performance/
automation-dashboard/src/app/api/ml/power/
automation-dashboard/src/app/api/ml/power/eda/
automation-dashboard/src/app/api/ml/power/eda/anomalies/
automation-dashboard/src/app/api/ml/power/eda/categorical/
automation-dashboard/src/app/api/ml/power/eda/complete/
automation-dashboard/src/app/api/ml/power/eda/comprehensive/
automation-dashboard/src/app/api/ml/power/eda/correlations/
automation-dashboard/src/app/api/ml/power/eda/describe/
automation-dashboard/src/app/api/ml/power/eda/distributions/
automation-dashboard/src/app/api/ml/power/eda/feature-types/
automation-dashboard/src/app/api/ml/power/eda/info/
automation-dashboard/src/app/api/ml/power/eda/kurtosis/
automation-dashboard/src/app/api/ml/power/eda/missing/
automation-dashboard/src/app/api/ml/power/eda/outliers/
automation-dashboard/src/app/api/ml/power/eda/patterns/
automation-dashboard/src/app/api/ml/power/eda/skew/
automation-dashboard/src/app/api/ml/power/eda/statistical/
automation-dashboard/src/app/api/ml/power/eda/time-series/
automation-dashboard/src/app/api/ml/power/eda/value-counts/
automation-dashboard/src/app/api/ml/power/eda/visual/
automation-dashboard/src/app/api/ml/power/feature/
automation-dashboard/src/app/api/ml/power/feature/automatic/
automation-dashboard/src/app/api/ml/power/feature/manual/
automation-dashboard/src/app/api/ml/power/feature/selection/
automation-dashboard/src/app/api/ml/power/model/
automation-dashboard/src/app/api/ml/power/model/ensemble/
automation-dashboard/src/app/api/ml/power/model/explain/
automation-dashboard/src/app/api/ml/power/model/optimize/
automation-dashboard/src/app/api/ml/power/model/train/
automation-dashboard/src/app/api/ml/power/pattern/
automation-dashboard/src/app/api/ml/power/pattern/discovery/
automation-dashboard/src/app/api/ml/power/pattern/library/
automation-dashboard/src/app/api/ml/predict/
automation-dashboard/src/app/api/ml/predict-batch/
automation-dashboard/src/app/api/ml/predictions/
automation-dashboard/src/app/api/ml/problem-types/
automation-dashboard/src/app/api/ml/train/
automation-dashboard/src/app/api/ml/unified/
automation-dashboard/src/app/api/ml/unified/discover/
automation-dashboard/src/app/api/ml/unified/train/
automation-dashboard/src/app/api/ml/wizard/
automation-dashboard/src/app/api/ml/wizard/cleaning/
automation-dashboard/src/app/api/ml/wizard/data-collection/
automation-dashboard/src/app/api/ml/wizard/deployment/
automation-dashboard/src/app/api/ml/wizard/discovery/
automation-dashboard/src/app/api/ml/wizard/evaluation/
automation-dashboard/src/app/api/ml/wizard/feature-engineering/
automation-dashboard/src/app/api/ml/wizard/interpretation/
automation-dashboard/src/app/api/ml/wizard/monitoring/
automation-dashboard/src/app/api/ml/wizard/prediction/
automation-dashboard/src/app/api/ml/wizard/start/
automation-dashboard/src/app/api/notifications/
automation-dashboard/src/app/api/notifications/vacant-rooms/
automation-dashboard/src/app/api/properties/
automation-dashboard/src/app/api/properties/[id]/
automation-dashboard/src/app/api/properties/sync/
automation-dashboard/src/app/api/reports/
automation-dashboard/src/app/api/reports/alerts/
automation-dashboard/src/app/api/reports/device-health/
automation-dashboard/src/app/api/reports/occupancy/
automation-dashboard/src/app/api/rooms/
automation-dashboard/src/app/api/rooms/[id]/
automation-dashboard/src/app/api/rooms/[id]/devices/
automation-dashboard/src/app/api/rooms/[id]/devices/[deviceId]/
automation-dashboard/src/app/api/rooms/[id]/reservation/
automation-dashboard/src/app/api/rooms/[id]/status/
automation-dashboard/src/app/api/rooms/[id]/sync/
automation-dashboard/src/app/api/rooms/sync-all/
automation-dashboard/src/app/api/services/
automation-dashboard/src/app/api/services/init/
automation-dashboard/src/app/api/tasks/
automation-dashboard/src/app/api/test/
automation-dashboard/src/app/api/test/collect-anomalies/
automation-dashboard/src/app/api/test/simulate-alerts/
automation-dashboard/src/app/api/test/websocket-processor/
automation-dashboard/src/app/api/users/
automation-dashboard/src/app/api/users/[id]/
automation-dashboard/src/app/api/webhooks/
automation-dashboard/src/app/api/webhooks/clerk/
automation-dashboard/src/app/api/webhooks/hostex/
automation-dashboard/src/app/api/webhooks/manage/
automation-dashboard/src/app/api/webhooks/manage/[id]/
automation-dashboard/src/app/api/webhooks/test/
automation-dashboard/src/app/api/websocket/
automation-dashboard/src/app/devices/
automation-dashboard/src/app/insights/
automation-dashboard/src/app/ml/
automation-dashboard/src/app/ml/activity/
automation-dashboard/src/app/ml-control/
automation-dashboard/src/app/ml-models/
automation-dashboard/src/app/reports/
automation-dashboard/src/app/settings/
automation-dashboard/src/app/settings/audit/
automation-dashboard/src/app/settings/data-collection/
automation-dashboard/src/app/settings/integrations/
automation-dashboard/src/app/settings/properties-rooms/
automation-dashboard/src/app/settings/users/
automation-dashboard/src/app/sign-in/
automation-dashboard/src/app/sign-in/[[...sign-in]]/
automation-dashboard/src/app/sign-up/
automation-dashboard/src/app/sign-up/[[...sign-up]]/
automation-dashboard/src/components/
automation-dashboard/src/components/analytics/
automation-dashboard/src/components/layout/
automation-dashboard/src/components/ml/
automation-dashboard/src/components/ml/power/
automation-dashboard/src/components/ml/shared/
automation-dashboard/src/components/ml/wizard/
automation-dashboard/src/components/ml/wizard/steps/
automation-dashboard/src/components/reports/
automation-dashboard/src/components/rooms/
automation-dashboard/src/components/settings/
automation-dashboard/src/components/ui/

(File list truncated. Use list_files on specific subdirectories if you need to explore further.)
</environment_details>

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue - In ProgressSomeone is actively working on this. Should link to a PR soon.bugSomething isn't working

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions