suna/frontend
yeyan1996 176182e2e9 fix: refactor playback controls and consolidate XML tag constants
- Remove commented-out playback logic from share page
- Simplify tool call handling in PlaybackControls by removing toolPlaybackIndex state
- Fix tool navigation initialization and synchronization issues
- Consolidate HIDE_STREAMING_XML_TAGS constant from multiple files into utils.ts
- Add 'create-tasks' to hidden streaming XML tags list
- Improve tool call side panel index synchronization
- Add cursor pointer styling to slider components for better UX
- Remove unused toolName tracking in chunk processing
- Fix tool index initialization to start at 0 instead of -1

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-09 12:59:55 -07:00
..
public feat: add SSR SEO meta and dynamic OG public agent replay pages 2025-05-12 14:50:23 +02:00
src fix: refactor playback controls and consolidate XML tag constants 2025-08-09 12:59:55 -07:00
.dockerignore Removed env and run command from compose file 2025-07-12 21:45:42 +05:45
.env.example wip 2025-07-27 05:15:33 +02:00
.gitignore feat(sentry): add Sentry integration for error tracking and monitoring 2025-05-27 08:35:31 +00:00
.prettierignore wip: rework attachments 2025-05-07 22:55:03 +02:00
.prettierrc wip: rework attachments 2025-05-07 22:55:03 +02:00
Dockerfile fix: restore build dependencies 2025-07-13 14:56:34 +05:30
README.md docs: enhance contributing and self-hosting documentation 2025-06-23 16:16:44 +00:00
components.json wip: rework attachments 2025-05-07 22:55:03 +02:00
eslint.config.mjs wip: rework attachments 2025-05-07 22:55:03 +02:00
instrumentation-client.ts Integrate PostHog analytics and tracking 2025-08-08 15:24:12 +05:30
next.config.ts Integrate PostHog analytics and tracking 2025-08-08 15:24:12 +05:30
package-lock.json Integrate PostHog analytics and tracking 2025-08-08 15:24:12 +05:30
package.json Integrate PostHog analytics and tracking 2025-08-08 15:24:12 +05:30
postcss.config.mjs wip: rework attachments 2025-05-07 22:55:03 +02:00
tsconfig.json wip 2025-07-10 04:15:45 +02:00

README.md

Suna Frontend

Quick Setup

The easiest way to get your frontend configured is to use the setup wizard from the project root:

cd .. # Navigate to project root if you're in the frontend directory
python setup.py

This will configure all necessary environment variables automatically.

Environment Configuration

The setup wizard automatically creates a .env.local file with the following configuration:

NEXT_PUBLIC_SUPABASE_URL=https://your-project.supabase.co
NEXT_PUBLIC_SUPABASE_ANON_KEY=your-anon-key
NEXT_PUBLIC_BACKEND_URL=http://localhost:8000/api
NEXT_PUBLIC_URL=http://localhost:3000
NEXT_PUBLIC_ENV_MODE=LOCAL

Getting Started

Install dependencies:

npm install

Run the development server:

npm run dev

Build for production:

npm run build

Run the production server:

npm run start

Development Notes

  • The frontend connects to the backend API at http://localhost:8000/api
  • Supabase is used for authentication and database operations
  • The app runs on http://localhost:3000 by default
  • Environment variables are automatically configured by the setup wizard