Skip to content

Web only UI - #7

Merged
Prof-bilal merged 42 commits into
Prof-bilal:mainfrom
HusnainMaroof:web-only-ui
Nov 19, 2026
Merged

Prof-bilal merged 42 commits into
Prof-bilal:mainfrom
HusnainMaroof:web-only-ui

Conversation

@HusnainMaroof

Copy link
Copy Markdown
Contributor

some changes

Prof-bilal and others added 30 commits October 23, 2026 09:18
- Remove the native/desktop and Linux packaging: Tauri release workflow,
  PyInstaller entry, the app updater banner and bridge API, and test
  scripts that pointed at deleted files. Rename desktop/ to web/.
- `contextgit web` now serves the UI on 7417 and the API on 7418 (fixed,
  below the OS ephemeral range). A busy port stops with a clear message.
- The launcher injects the API address and token into the served page
  (only for loopback Host headers), so http://127.0.0.1:7417 is
  bookmarkable and the token stays out of the URL.
- Browser terminals on Windows run in a real ConPTY (pywinpty): Enter,
  echo, prompts and TUIs such as Codex now work. The default shell falls
  back to PowerShell/cmd when $SHELL is a POSIX path.
- Decode subprocess output as UTF-8 so Windows no longer crashes reader
  threads on non-cp1252 bytes.
- Add the OpenHands-style web UI foundation (src/app: tokens, primitives,
  hash routing, app shell with stub views) and docs/web-ui-plan.md.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Run 2026-11-02-openhands-style-web-ui-for-contextgit-fr, task ui-rail, accepted by the orchestrator.
Run 2026-11-02-openhands-style-web-ui-for-contextgit-fr, task ui-workspace, accepted by the orchestrator.
Run 2026-11-02-openhands-style-web-ui-for-contextgit-fr, task ui-session, accepted by the orchestrator.
Run 2026-11-02-openhands-style-web-ui-for-contextgit-fr, task ui-library, accepted by the orchestrator.
HusnainMaroof and others added 11 commits November 2, 2026 14:13
Built by Smurf agents on free models (run 2026-11-02-openhands-style-web-
ui-for-contextgit-fr: rail, session, workspace and library accepted; home
skipped after Kilo's free quota ran out), then reviewed and fixed by hand,
because no second-model review was produced:

- Rail: vertical layout, drawer beside (not over) the rail, running badge
  only when > 0, Home/New session focus the prompt, labelled controls.
- Home: attempt-1 draft, plus the prompt-focus listener.
- Session view: follow the live terminal state (stale "running" after a
  reload shows "Not attached"), stop the PTY on close, agent labels,
  confirm dialog above the workspace with one Cancel.
- Workspace: hide the terminal with visibility instead of display:none
  (WebGL scrollback came back garbled), skip node_modules/.git in search.
- Memory: approve the server's own draft revision; the generated page
  sent an empty revision that would have wiped the memory, and showed
  approved memory as a pending preview.
- Skills: built-ins from roles.ts, promote only approved project skills,
  no stale selection while polling, a way back to the add form.
- Settings: workbench/agent info without a project, checks for every
  harness.
- Launcher: serve the token from a same-origin /contextgit-bootstrap.js
  (the CSP blocks inline scripts), refuse cross-site loads of it
  (Sec-Fetch-Site, CORP).

Verified at http://127.0.0.1:7417: start a shell from Home, terminal
output, composer, files, tab switching, drawer, canvas, skills, memory,
settings, close session.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Big screens: the rail used the class `.rail`, which a legacy stylesheet
positions as a floating toolbar at min-width 1200px. The rail jumped to the
middle-left and the main view collapsed into the 52px column. It now uses
`.app-rail` only.

Look and copy, away from the generic dark-plus-orange template:
- Palette from git's own vocabulary: graphite surfaces, ref yellow for the
  primary action, branch cyan for info, green/red only for add/delete and
  ok/error. IBM Plex Sans for UI, IBM Plex Mono for paths, ids and times.
- Signature: run lists and run events drawn as a git-log lane with a commit
  dot per row and the short session id.
- Home is a command line for the open project (prompt-style path, task box,
  agent and location, Start) instead of a marketing hero.
- Rail: outlined `cg` monogram with a HEAD dot; history, fork, bookmark and
  notebook icons instead of sparkles and a brain.
- Plain copy on the session, memory and settings pages; no decorative
  label icons.

Checked at 1920x1080 and 2560x1440: home, session view and canvas.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ome idle

Run 2026-11-02-contextgit-web-logic-phase-diffs-stale-s, task logic-stale-running, accepted by the orchestrator.
Run 2026-11-02-contextgit-web-logic-phase-diffs-stale-s, task logic-diff-api, accepted by the orchestrator.
Run 2026-11-02-contextgit-web-logic-phase-diffs-stale-s, task logic-diff-ui, accepted by the orchestrator.
Run 2026-11-02-contextgit-web-logic-phase-diffs-stale-s, task logic-palette, accepted by the orchestrator.
Built by Smurf agents on free models (run 2026-11-02-contextgit-web-logic-
phase-diffs-stale-s, 4/4 accepted, reviews 92-100), then reviewed and
extended by hand:

- GET /api/v1/sessions/{id}/diff (contextgit/gitops/diff.py): per-file
  A/M/D, +/- counts and unified diff against the run's base, untracked files
  included, text capped at 400 KB. Untracked files over 1 MB are now listed
  without being read whole.
- The Changes tab shows those diffs (polled every 5 s) and says why a diff
  is missing when it was cut by the cap.
- Terminal sessions left "running" by an earlier launch become idle when the
  project opens; their processes cannot have survived the restart.
- Ctrl+K command palette: views, projects and sessions. Fixed: rows past
  the eighth were unreachable, option ids were built from paths, Ctrl+Shift+K
  was ignored and Tab was trapped.
- Agent list shows only agents that are installed and that the terminal can
  launch: new GET /api/v1/commands/which (bare names only), used by the web
  bridge instead of a stub that always answered "installed". Command Code
  launches `command-code`, matching the harness list.

Tests: 16 new, all pass; full suite unchanged against the baseline (the same
69 Windows-only failures). Checked in the browser.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@vercel

vercel Bot commented Nov 2, 2026

Copy link
Copy Markdown

@HusnainMaroof is attempting to deploy a commit to the hb048231-5400's projects Team on Vercel.

A member of the Team first needs to authorize it.

@coderabbitai

coderabbitai Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

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: 929a4a95-d556-49b6-ae99-a0d1d24a0d58
  • 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

- Delete every web source file nothing reaches from src/main.tsx (the old
  tabbed workbench: git/storage/code views, rails, dock, panes, dialogs,
  voice input) plus shared/usage.ts. Kept: shared/security.ts (used by
  vite.config.ts) and the shared types the bridge interface still declares.
- Delete the test scripts that only exercised that UI (workspace
  performance, knowledge, new-run dialog) and their npm scripts.
- Prune CSS selectors that cannot match: a selector stays when all its
  classes appear in live source, in a dynamic prefix, or come from xterm /
  React Flow. shell.css 5,956 -> 603 lines, spatial.css 2,069 -> 1,585,
  clay.css 201 -> 85. CSS bundle 263 KB -> 113 KB.
- Stop importing the marketing site's globals.css. It was the source of the
  `.rail` rule that broke the layout at >= 1200px; the three base rules the
  app needed (box-sizing, body margin, no page scroll) now live in tokens.css.

Typecheck and build pass. Checked in the browser at 1920x1080: home,
session terminal, canvas with its dialogs and panels, skills, memory and
settings.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@Prof-bilal
Prof-bilal merged commit 775a849 into Prof-bilal:main Nov 19, 2026
1 of 5 checks passed
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.

2 participants