Skip to content

Conversation

@Che-Zhu
Copy link
Collaborator

@Che-Zhu Che-Zhu commented Dec 17, 2025

Problem

Components (ProjectSidebar, StatusBar, TerminalContainer) were stuck showing "CREATING" status because they received static server-rendered props from layout.tsx that never updated after initial page load.

Meanwhile, PrimarySidebar worked correctly because it used useQuery with polling.

Solution

Use the existing useProject hook in all components for client-side polling (3s interval).

Changes

File Change
components/layout/status-bar.tsx Convert to client component, use useProject hook
components/sidebars/project-sidebar-new.tsx Use useProject hook instead of static props
components/layout/project-content-wrapper.tsx Use useProject hook for TerminalContainer
app/projects/[id]/layout.tsx Pass projectId instead of full project object, simplify Prisma query to only check project existence

Testing

  • Verified all components update status from "CREATING" to "RUNNING" after project is ready
  • Terminal connects successfully after sandbox is running

Components were stuck showing "CREATING" status because they received
static server-rendered props from layout.tsx that never updated after
initial page load.
Changes:
- StatusBar: Convert to client component, use useProject hook
- ProjectSidebar: Use useProject hook instead of static props
- ProjectContentWrapper: Use useProject hook for TerminalContainer
- layout.tsx: Pass projectId instead of full project object, simplify
  Prisma query to only check project existence
All components now use useProject hook with 3s polling interval for
real-time status updates, matching PrimarySidebar behavior.
@github-actions
Copy link

✅ PR Check Results: Passed

Build Checks

Check Status
Lint & Build ✅ Passed
Docker Build ✅ Passed

✨ Great work!

All checks passed successfully. Your PR is ready for review.

Details:

  • ✅ Code quality verified (linting passed)
  • ✅ Build successful
  • ✅ Docker image build verified (linux/amd64)
    Commit: 6f153b0e4b65a0f4c7ee5dc36fc1151a92c3ffcd
    Branch: hotfix/disable-loading-state

🔗 View Details:

@Che-Zhu Che-Zhu merged commit 8ae15b2 into FullAgent:main Dec 17, 2025
9 checks passed
@Che-Zhu Che-Zhu deleted the hotfix/disable-loading-state branch December 17, 2025 03:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant