Skip to content

feat(nova-desktop): introduce Nova Desktop application - #378

Open
yashdev9274 wants to merge 2 commits into
mainfrom
nova-2
Open

yashdev9274 wants to merge 2 commits into
mainfrom
nova-2

Conversation

@yashdev9274

Copy link
Copy Markdown
Owner
  • Added initial setup for the Nova Desktop application, including essential files such as package.json, index.html, and configuration files.
  • Implemented a GitHub Actions workflow for CI/CD to automate builds and tests for the nova-desktop app.
  • Created scripts for building and smoke testing the native sidecar.
  • Established a basic structure for the application with React components and TypeScript configuration.
  • Included .gitignore files to manage ignored files specific to the nova-desktop environment.
  • Added README documentation to guide users on running and building the application.

Description

Please include a summary of the change and which issue is fixed.

Fixes #(issue)

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Refactor (no functional changes)

How Has This Been Tested?

Please describe the tests that you ran to verify your changes.

  • bun test passes
  • bun run typecheck passes
  • bun run lint passes (if applicable)

Checklist:

  • My code follows the project's style guidelines
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works

- Added initial setup for the Nova Desktop application, including essential files such as package.json, index.html, and configuration files.
- Implemented a GitHub Actions workflow for CI/CD to automate builds and tests for the nova-desktop app.
- Created scripts for building and smoke testing the native sidecar.
- Established a basic structure for the application with React components and TypeScript configuration.
- Included .gitignore files to manage ignored files specific to the nova-desktop environment.
- Added README documentation to guide users on running and building the application.
@vercel

vercel Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
nova-agent Error Error Nov 29, 2026 12:08pm UTC
nova-agent-2eiu Error Error Nov 29, 2026 12:08pm UTC
supercli Ready Ready Preview Nov 29, 2026 12:08pm UTC
supercli-client Ready Ready Preview Nov 29, 2026 12:08pm UTC
supercli-docs Ready Ready Preview Nov 29, 2026 12:08pm UTC
vercel-supercodeai-integration Ready Ready Preview Nov 29, 2026 12:08pm UTC

Request Review

@coderabbitai

coderabbitai Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Too many files!

This PR contains 120 files, which is 20 over the limit of 100.

To get a review, reduce the PR to 100 files or fewer by splitting it into smaller PRs or changing its base branch.

Upgrade to a paid plan to raise the limit.

This organization's CodeRabbit subscription is cancelled. Resubscribe in Billing to continue reviews beyond the free-tier limit.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 75d01d44-2038-4211-aeab-710c1ad987a4
Commits

Reviewing files that changed from the base of the PR and between f62b533 and f783c56.

Files ignored due to path filters: 4

  • apps/nova-desktop/src-tauri/Cargo.lock is excluded by !**/*.lock
  • apps/nova-desktop/src-tauri/icons/icon.ico is excluded by !**/*.ico
  • apps/nova-desktop/src-tauri/icons/icon.png is excluded by !**/*.png
  • bun.lock is excluded by !**/*.lock
Files selected for processing: 120

  • .github/workflows/nova-desktop.yml
  • .gitignore
  • apps/nova-desktop/.gitignore
  • apps/nova-desktop/README.md
  • apps/nova-desktop/index.html
  • apps/nova-desktop/package.json
  • apps/nova-desktop/public/startup.js
  • apps/nova-desktop/scripts/build-sidecar.ts
  • apps/nova-desktop/scripts/smoke-sidecar.ts
  • apps/nova-desktop/src-tauri/Cargo.toml
  • apps/nova-desktop/src-tauri/build.rs
  • apps/nova-desktop/src-tauri/capabilities/default.json
  • apps/nova-desktop/src-tauri/icons/icon.icns
  • apps/nova-desktop/src-tauri/src/credentials.rs
  • apps/nova-desktop/src-tauri/src/main.rs
  • apps/nova-desktop/src-tauri/tauri.bundle.conf.json
  • apps/nova-desktop/src-tauri/tauri.conf.json
  • apps/nova-desktop/src/account-settings.tsx
  • apps/nova-desktop/src/approvals-view.tsx
  • apps/nova-desktop/src/attachments.test.ts
  • apps/nova-desktop/src/attachments.ts
  • apps/nova-desktop/src/composer.tsx
  • apps/nova-desktop/src/desktop-shell.css
  • apps/nova-desktop/src/feature-data.tsx
  • apps/nova-desktop/src/feature-views.tsx
  • apps/nova-desktop/src/graphql.ts
  • apps/nova-desktop/src/local-task-panel.tsx
  • apps/nova-desktop/src/main.tsx
  • apps/nova-desktop/src/message-content.css
  • apps/nova-desktop/src/message-content.test.tsx
  • apps/nova-desktop/src/message-content.tsx
  • apps/nova-desktop/src/preferences.tsx
  • apps/nova-desktop/src/provider-settings.css
  • apps/nova-desktop/src/provider-settings.tsx
  • apps/nova-desktop/src/review-files.css
  • apps/nova-desktop/src/review-files.tsx
  • apps/nova-desktop/src/styles.css
  • apps/nova-desktop/src/workspace-editor.tsx
  • apps/nova-desktop/src/workspace-panel.tsx
  • apps/nova-desktop/src/workspace-publish.tsx
  • apps/nova-desktop/src/workspace-setup.tsx
  • apps/nova-desktop/tsconfig.json
  • apps/nova-desktop/vite.config.ts
  • apps/supercode-cli/server/package.json
  • apps/supercode-cli/server/src/cli/commands/login.ts
  • apps/supercode-cli/server/src/cli/commands/nova.ts
  • apps/supercode-cli/server/src/index.ts
  • apps/supercode-cli/server/src/lib/__tests__/subscription-check.test.ts
  • apps/supercode-cli/server/src/lib/subscription-check.ts
  • apps/supercode-cli/server/src/lib/token-paths.ts
  • apps/supercode-cli/server/src/lib/token.ts
  • apps/supercode-cli/server/src/nova/codex-rpc.ts
  • apps/supercode-cli/server/src/nova/desktop-api.ts
  • apps/supercode-cli/server/src/nova/desktop-approvals.test.ts
  • apps/supercode-cli/server/src/nova/desktop-approvals.ts
  • apps/supercode-cli/server/src/nova/desktop-auth.test.ts
  • apps/supercode-cli/server/src/nova/desktop-auth.ts
  • apps/supercode-cli/server/src/nova/desktop-bootstrap.ts
  • apps/supercode-cli/server/src/nova/desktop-codex-process.test.ts
  • apps/supercode-cli/server/src/nova/desktop-features.test.ts
  • apps/supercode-cli/server/src/nova/desktop-features.ts
  • apps/supercode-cli/server/src/nova/desktop-graphql.test.ts
  • apps/supercode-cli/server/src/nova/desktop-graphql.ts
  • apps/supercode-cli/server/src/nova/desktop-local-approvals.test.ts
  • apps/supercode-cli/server/src/nova/desktop-local-approvals.ts
  • apps/supercode-cli/server/src/nova/desktop-local-tasks.ts
  • apps/supercode-cli/server/src/nova/desktop-main.ts
  • apps/supercode-cli/server/src/nova/desktop-preferences.ts
  • apps/supercode-cli/server/src/nova/desktop-providers.test.ts
  • apps/supercode-cli/server/src/nova/desktop-providers.ts
  • apps/supercode-cli/server/src/nova/desktop-recovery.test.ts
  • apps/supercode-cli/server/src/nova/desktop-reviews.test.ts
  • apps/supercode-cli/server/src/nova/desktop-reviews.ts
  • apps/supercode-cli/server/src/nova/desktop-run-store.ts
  • apps/supercode-cli/server/src/nova/desktop-service.test.ts
  • apps/supercode-cli/server/src/nova/desktop-service.ts
  • apps/supercode-cli/server/src/nova/desktop-sessions.test.ts
  • apps/supercode-cli/server/src/nova/desktop-sessions.ts
  • apps/supercode-cli/server/src/nova/desktop-turns.test.ts
  • apps/supercode-cli/server/src/nova/desktop-turns.ts
  • apps/supercode-cli/server/src/nova/desktop-workspaces.test.ts
  • apps/supercode-cli/server/src/nova/desktop-workspaces.ts
  • apps/supercode-cli/server/src/nova/local-codex.test.ts
  • apps/supercode-cli/server/src/nova/runtime.ts
  • apps/supercode-cli/server/src/nova/workspaces/git.test.ts
  • apps/supercode-cli/server/src/nova/workspaces/git.ts
  • apps/supercode-cli/server/src/nova/workspaces/patch.test.ts
  • apps/supercode-cli/server/src/nova/workspaces/patch.ts
  • apps/web/app/api/desktop/nova/features/[feature]/route.ts
  • apps/web/app/api/desktop/nova/providers/route.ts
  • apps/web/app/api/desktop/nova/sessions/[sessionId]/runs/[runId]/cancel/route.ts
  • apps/web/app/api/desktop/nova/sessions/[sessionId]/turn/route.ts
  • apps/web/app/api/desktop/nova/sessions/[sessionId]/workspace/route.ts
  • apps/web/modules/nova/automations/desktop-edit.test.ts
  • apps/web/modules/nova/automations/service.ts
  • apps/web/modules/nova/desktop-features.test.ts
  • apps/web/modules/nova/desktop-features.ts
  • apps/web/modules/nova/desktop-provider-runtime.ts
  • apps/web/modules/nova/desktop-providers.test.ts
  • apps/web/modules/nova/desktop-providers.ts
  • apps/web/modules/nova/eve/projection.test.ts
  • apps/web/modules/nova/eve/projection.ts
  • apps/web/modules/nova/local-projects/desktop-workspace-route.ts
  • apps/web/modules/nova/local-projects/worktree-binding.ts
  • apps/web/modules/nova/sessions/desktop-cancellation.test.ts
  • apps/web/modules/nova/sessions/desktop-cancellation.ts
  • apps/web/modules/nova/sessions/desktop-turn-route.test.ts
  • apps/web/modules/nova/sessions/desktop-turn-route.ts
  • apps/web/modules/nova/sessions/desktop-workspace-route.test.ts
  • apps/web/modules/nova/sessions/turn.ts
  • packages/nova-runtime/remote.ts
  • packages/nova/desktop-attachments.test.ts
  • packages/nova/desktop-attachments.ts
  • packages/nova/desktop-features.ts
  • packages/nova/desktop-providers.ts
  • packages/nova/desktop.test.ts
  • packages/nova/desktop.ts
  • packages/nova/package.json
  • packages/nova/workspace-patch.test.ts
  • packages/nova/workspace-patch.ts

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@greptile-apps

greptile-apps Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

Confidence Score: 1/5 · Fix recovery, paused cancellation, missing replies, and wrong-thread stop controls before merging.RetriggerView in GreptileConfidence Score: 1/5 Tier: plus

[High impact] The PR adds a desktop route into shared hosted Nova workflows and local project operations.

Fix recovery, paused cancellation, missing replies, and wrong-thread stop controls before merging.

Findings

  1. P1 Recovery stays blocked after crashes ▶
  2. P1 Paused cancellation never finishes ▶
  3. P1 Finished cloud replies disappear ▶
  4. P1 Stop affects another thread ▶
  5. P2 Cancellation appears as failure ▶
  6. P2 Slow work appears failed ▶
  7. P2 Large local replies vanish ▶
  8. P2 Long prompts break Activity ▶
  9. P2 New documentation stays untracked ▶

Summary

Adds Nova Desktop with a React interface, a Rust host, and an app-owned Bun service.

  • Nova Desktop opens a local workspace alongside hosted Nova Web.
  • Desktop threads can use and safely change local Git projects.
  • Local Codex tasks need approval and can resume after reconnecting.
  • Desktop preview builds now package the app and its local service.

Checks were source-based, plus a Git ignore check. Runtime and UI checks were not run; dependencies are not installed.

Known limits documented by yashdev9274 were not reported as new defects: unsigned previews, no credential refresh, broader local Codex reads, and non-atomic file application. Native walkthroughs and rollout remain deferred.

Diagram

sequenceDiagram
  participant UI as Desktop React
  participant Rust as Rust host
  participant Keys as OS credential store
  participant Local as Bun service
  participant Web as Nova Web
  participant Codex as Local Codex
  Rust->>Keys: Restore login
  Rust->>Local: Start with private secret and login
  UI->>Rust: GraphQL request
  Rust->>Local: Authenticated loopback request
  Local->>Web: Hosted account and conversation calls
  UI->>Rust: Choose project or confirm local task
  Rust->>Local: Grant folder or approve task
  Local->>Codex: Run dedicated read-only task
  Codex-->>Local: Task events
  Local-->>Rust: Saved events and results
  Rust-->>UI: Display results
Loading

Reviews (1) · Last reviewed commit: "feat(nova-desktop): introduce Nova Deskt..." · Reviewed by Greptile

Comment on lines +508 to +510
async acknowledgePatch(workspaceId: string, previewId: string): Promise<boolean> {
const workspace = await this.get(workspaceId)
return this.locked(workspace.path, async () => {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Recovery stays blocked after crashes

applyPatch writes its recovery record while holding nova-workspace.lock. A service crash leaves that directory behind, but acknowledgePatch needs the same lock and always gets “Repository is busy.” The user cannot clear recovery or make further changes through Nova. Add safe stale-lock recovery so the new recovery action can unblock the repository.

Comment on lines +18 to +20
requestCancellation: async (userId, sessionId, runId) => (await prisma.agentRun.updateMany({
where: { ...owned(userId, sessionId, runId), cancellationAt: null, status: { notIn: ["completed", "cancelled", "failed"] } },
data: { cancellationAt: new Date(), cancellationReason: "Requested from Nova Desktop", version: { increment: 1 } },

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Paused cancellation never finishes

Cancelling a web run in awaiting_input only sets cancellationAt. That run has already closed its watcher, and its answer and resume paths now reject it because the flag is set. This also happens when cancellation races with a request for input. The task stays paused with cancellation pending forever. Add a path that closes paused resources and records a terminal result.

}
return { ...current, text, status, toolResults, error, reconnectAttempts: 0, runStatus: turnEvents.status ?? current.runStatus, canCancelHosted: turnEvents.canCancelHosted, next: turnEvents.next, done: turnEvents.done }
})
if (turnEvents.done) { setHistoryRevision((value) => value + 1); setWorkspaceRevision((value) => value + 1) }

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Finished cloud replies disappear

In a conversation with more than 100 history entries, completion reloads history from the beginning and discards any pages already loaded. The render condition also hides the completed live cloud reply. The replacement page contains the oldest entries, so the new answer disappears. Keep the reply visible until history includes it, and refresh without resetting the loaded pages.

Comment on lines +209 to +212
if (!active || !sessionRun) return
setTurn((current) => current && (!current.done || current.runId === sessionRun.runId) ? current : {
sessionId, runStatus: sessionRun.status, execution: sessionRun.execution, runId: sessionRun.runId, next: 0, prompt: sessionRun.prompt, text: "", status: "Recovering saved activity…", done: false, error: "",
})

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Stop affects another thread

Switching threads preserves another thread’s unfinished turn. Its output is hidden because the conversation checks turn.sessionId, but the composer and stopTurn still use that global object. Opening thread B while a local task runs in A therefore shows a “Stop local task” control in B that stops A. Store turns by thread, or scope recovery and controls to the selected thread.

Comment on lines +576 to +577
const requestedCancellation = watchCancellation(async () => Boolean((await prisma.agentRun.findUnique({ where: { id: posted.runId }, select: { cancellationAt: true } }))?.cancellationAt))
const turnSignal = AbortSignal.any([...(input.signal ? [input.signal] : []), turnDeadline, requestedCancellation.signal])

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Cancellation appears as failure

Cancelling an executing cloud turn makes the new watcher abort into the generic catch. That catch calls completeRun with failed: true and emits finish with reason: "error". Users who deliberately stop a task therefore see a failed run. Give requested cancellation its own completion path so hosted history and the desktop journal show cancellation instead.

Comment on lines +241 to +243
stream
.set_read_timeout(Some(Duration::from_secs(20)))
.map_err(|_| "Could not configure service connection")?;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Slow work appears failed

The native bridge stops waiting after 20 seconds, while Codex requests and individual Git commands allow 30 seconds. Some operations make several calls. A slow model lookup or publication can therefore appear to fail while the service continues working. The shared lock also blocks Stop during that wait. Move slow work behind a job result, or align the limits and let control requests run separately.

Comment on lines +92 to +95
// Local runtime emits synchronously; preserve its order in one journal.
run.bytes += Buffer.byteLength(JSON.stringify(event))
if (run.bytes > 2_000_000 || run.events.length >= 10_000) { run.abort.abort(); throw new Error("Local output exceeds limits") }
run.events.push(event)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Large local replies vanish

Local output enters run.events without the journal’s per-event check. LocalCodexRuntime accepts text deltas larger than 100,000 characters, but desktopEventSchema rejects them when saving. One large delta makes every later save of that run fail, so its local-only reply is lost after restart. Split or validate local deltas before storing them.

case "pulls": return (await listDesktopReviews(user.id)).slice(0, 1000).map((review) => ({ id: String(review.id), title: String(review.prTitle), description: String(review.summary ?? ""), status: String(review.status), detail: `#${review.prNumber}` }))
case "activity": {
const activity = await getSettingsActivity(user.id)
return activity.recent.map((session) => ({ id: session.id, title: session.objective, description: `${session.runCount} runs`, status: session.status, detail: session.updatedAt }))

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Long prompts break Activity

This mapping copies the full session objective into title, which allows only 500 characters. Session creation accepts 20,000 characters and uses the first prompt as the objective. One longer prompt among the recent sessions makes the entire Activity response fail. Shorten the display title or adjust the contract.

Comment thread .gitignore
**/.nova-feedback

# local dev plan
docs

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 New documentation stays untracked

The unanchored docs rule also ignores the existing apps/docs application. New pages there disappear from normal Git status and staging, so contributors can leave them out of commits. Use /docs/ to ignore only the root-level local planning folder.

Suggested change
docs
/docs/

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

This branch was successfully deployed

4 active deployments
Preview – supercli — f783c567 Deployed Nov 29, 2026 by vercel[bot]
Preview – vercel-supercodeai-integration — f783c567 Deployed Nov 29, 2026 by vercel[bot]
Preview – supercli-client — f783c567 Deployed Nov 29, 2026 by vercel[bot]
Preview – supercli-docs — f783c567 Deployed Nov 29, 2026 by vercel[bot]
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