Commit graph

36 commits

Author SHA1 Message Date
open-swe[bot]
25c3709e69
fix: Improve loading state handling on chat/threads page (#576)
* Apply patch

* Apply patch

* Apply patch

* cr

---------

Co-authored-by: open-swe[bot] <open-swe@users.noreply.github.com>
Co-authored-by: bracesproul <braceasproul@gmail.com>
2025-07-28 16:33:37 -07:00
Brace Sproul
c5aefa09f6
fix: Dont wrap layout in Github app provide since not all require it (#549)
* fix: Dont wrap layout in Github app provide since not all require it

* cr

* cr
2025-07-26 13:47:49 -07:00
Brace Sproul
3d944cc81e
fix: Better component for rendering thread errors (#528)
* fix: Better component for rendering thread errors

* cr
2025-07-25 00:55:23 +00:00
Dylan Boudro
d9feebb89d
feat: filter threads by selected Github org (#502)
* init gh thread filter

* format from main merge and improve filter logic

* fix git diff from main merge format

* refactor: move GH provider to chat layout

* fix cosmetic git diff indentation

* suspense and client component

* update filter mech w metadata install name

* cr

* CR: fix single thread view w disableOrgFilter option

---------

Co-authored-by: Brace Sproul <braceasproul@gmail.com>
2025-07-24 10:26:26 -07:00
Brace Sproul
6ac4deacd6
fix: Handle expired tokens (#506)
* fix: Handle expired tokens

* cr
2025-07-23 23:15:57 +00:00
Dylan Boudro
3967ea0dca
feat: Task plan UI Component: front-end only (#438)
* task plan init FE

* dark theme

* fix build

* new swr-config for frequent polling task plan

* rm dev logs + comments

* CR

* CR: center task progress bar

* add task tracking to thread-card on default-view (homepage)

* progress bar styling, revert cancel button change

* revert onstreamready optional

* implement homepage taskplan via polling instead of React Context for persistence

* rm comment

* Update apps/web/src/components/v2/actions-renderer.tsx

Co-authored-by: Brace Sproul <braceasproul@gmail.com>

* Update apps/web/src/components/v2/thread-card.tsx

Co-authored-by: Brace Sproul <braceasproul@gmail.com>

* Update apps/web/src/components/v2/thread-card.tsx

Co-authored-by: Brace Sproul <braceasproul@gmail.com>

* CR

* /chat/threads page taskplan

* shared utils in progressbar

* fix taskPlan for stream actions-renderer --> thread-view

* cr

---------

Co-authored-by: Brace Sproul <braceasproul@gmail.com>
2025-07-22 22:43:42 +00:00
Brace Sproul
dda277456a
feat: Require API keys from non langchain users (#448)
* feat: Require API keys from non langchain users

* cr

* cr
2025-07-17 18:10:48 -07:00
Brace Sproul
92014bdd11
fix: Manager routing, and UI issues (#440)
* fix: Manager routing, and UI issues

* cr

* cr

* cr
2025-07-17 11:52:25 -07:00
Brace Sproul
dc6e6b8625
fix: Better naming for NEXT_PUBLIC_GITHUB_APP_CLIENT_ID (#427) 2025-07-16 08:52:26 -07:00
Dylan Boudro
d51af805e2
Feat: Thread Status SWR Polling (#370)
* init swr polling branch

* useThreads types improvement

* minor build fix

* major refactor and simplification of polling system

* remove temp guide file

* refactor, remove errorBoundary, simplify schema

* refactor: unify client<>server status logic

* fix threads/page conflicts + functionality

* Update apps/web/src/components/v2/thread-card.tsx

Co-authored-by: Brace Sproul <braceasproul@gmail.com>

* CR in progress

* CR fix: add cn to thread-card.tsx

Co-authored-by: Brace Sproul <braceasproul@gmail.com>

* CR

* CR

* CR: no threads state, Batch ThreadsStatus for /chat/threads actual logic

* drop req type validation in lg proxy

* optimize thread polling, reduce unnecessary api calls, match implementation spec

* reduce unnecessary api calls, update all threads page

* add thread loading state to threadCard

* utilize threads/search for manager thread info

* improve polling api req efficiency

* rm comments

* post merge format

* fix import

* improve programmer cache logic

* reduce run requests

* remove timeout run requests

* remove run check for completed tasks

* fix: update status dot to support dark mode styles too

* fix session cache and proper typing

* fix: more typing

* code review fixes

* CR

* code review

* fix build

---------

Co-authored-by: Brace Sproul <braceasproul@gmail.com>
2025-07-15 17:51:12 -07:00
Brace Sproul
3b7dee85f7
feat: Settings page (#357)
* feat: Settings page

* fix build: minor syntax error

* rm old GH page, settings page functionality + dark mode

* Fix build add suspense to settings page

* add no GH installation functionality

* rm comments, add cn utilities

* add plus install new github org button to settings page

* cr

* cr

* cr

* cr

---------

Co-authored-by: Dylan Boudro <121908331+starmorph@users.noreply.github.com>
Co-authored-by: starmorph <dylan@starmorph.com>
2025-07-15 12:52:25 -07:00
Brace Sproul
a1d9b88d69
fix: A handful of small fixes (#408) 2025-07-14 20:01:27 -07:00
Brace Sproul
abc984409f
refactor: Proxy req utils, rename GITHUB_TOKEN_ENCRYPTION_KEY to SECRETS_ENCRYPTION_KEY (#391)
* refactor: Proxy req utils, rename GITHUB_TOKEN_ENCRYPTION_KEY to SECRETS_ENCRYPTION_KEY

* cr
2025-07-11 10:48:14 -07:00
Brace Sproul
3f4576b24b
feat: Add diagnose error node to planner (#387) 2025-07-11 00:44:48 +00:00
Brace Sproul
f54e6905b7
fix: Small nits (#386)
* fix: Small nits

* cr

* cr
2025-07-11 00:00:08 +00:00
bracesproul
9fb80bbd6a fix: Dont fetch entire thread history 2025-07-10 16:51:30 -07:00
open-swe-dev[bot]
ba38da81c3
feat: Add GitHub installation selector dropdown for multi-org support (#365)
* Apply patch x10

* fix build

* unifying GH org installations [org select, repo select, /github]

* github multi installation management

* clean git diff

* CR: remove HTTP constraint from GH install cookie, rm api endpoint, update hooks

* CR: use octokit types for GH install

* CR: GH loading component, fix org selector icons

* minor github loading fix

* rm un-needed gh install api route

* CR: InstallationCookieOptions

---------

Co-authored-by: open-swe-dev[bot] <open-swe-dev@users.noreply.github.com>
Co-authored-by: starmorph <dylan@starmorph.com>
Co-authored-by: Dylan Boudro <121908331+starmorph@users.noreply.github.com>
2025-07-10 15:45:26 -07:00
Dylan Boudro
6f7c5e1111
Feat: Polling /chat/threads (#337)
* Thread polling on /chat/page (recent)

* polling chat/threads using SWR polling hook

* reinstall swr in web/ package.json

---------

Co-authored-by: Brace Sproul <braceasproul@gmail.com>
2025-07-08 15:08:42 +00:00
Brace Sproul
4c53b1a4e3
feat: include installation name in headers (#358)
* feat: include installation id in headers

* drop console logs

* fix req from frontend
2025-07-07 19:27:47 +00:00
Brace Sproul
ba0690caa0
feat: trigger runs from GH issues (#324)
* feat: trigger runs from GH issues

* cr

* working

* cr

* done

* cr

* cr

* cr

* cr

* diff label for dev vs prod

* cr

* cr

* cr
2025-06-30 16:43:09 -06:00
Brace Sproul
64d34aa7bb
feat: Force user auth (#308)
* feat: Force user auth

* cr

* cr
2025-06-24 00:52:55 +00:00
Dylan Boudro
d778021da3
feat: Auth from Stream --> Middleware (#280)
* init auth stream --> middleware

* minor cleanup

* fix build

* fix github token

* minor format

* handle access token + GH install key

* add prompt to install GH app

* fix build

* fix gh install token passing

* remove console logs

* CR

* CR

* move dep, rm private key string replace

* CR minor fixes

* Update apps/web/src/providers/client.ts

---------

Co-authored-by: Brace Sproul <braceasproul@gmail.com>
2025-06-23 17:18:28 -07:00
Brace Sproul
91d5b0b087
chore: Allow chat page to be scrollable, dont show waiting tasks in init sandbox (#283) 2025-06-20 12:57:23 -07:00
Brace Sproul
42f67464bc
feat: Add loading state to all threads page (#260)
* feat: Implement a loading and empty state for recent & running threads

* cr

* feat: Add loading state to all threads page
2025-06-19 12:37:47 -07:00
Brace Sproul
a93614ffa6
feat: Implement a loading and empty state for recent & running threads (#257)
* feat: Implement a loading and empty state for recent & running threads

* cr
2025-06-19 12:28:06 -07:00
Brace Sproul
de8d465695
feat: Dark mode (#241)
* feat: Dark mode

* more work

* more dark/light mode, refactor thread card

* fix rest of dark mode

* cr

* cr

* cr
2025-06-18 16:44:41 -07:00
Brace Sproul
b752b2326e
feat: Add loading state to threads page (#234)
* feat: Add loading state to threads page

* format

* cr
2025-06-18 22:15:11 +00:00
Brace Sproul
ff8a0f7167
[WIP] feat: New multi agent GitHub based workflow (#175)
* feat: New multi agent GitHub based workflow

* fix: read plan from gh issue in init issue node

* format

* cr

* fix how new planner threads are started, allow for creating new issues

* fix: read tasks from gh issue inside manager when taking any action

* cr

* update planner

* feat: port intrerrupt node to planner

* add interrupt routing in graph

* update programmer nodes and state

* read messages from issue in programmer

* lint fix

* tag issue when opening PR

* better pr title and body generation prompts

* start runs from planner interrupt and update issue with task plan

* fix lg server build issues

* cr

* fix cloning and pushing

* cr

* cr

* feat: v0 copy (#194)

* feat: v0 copy

* cr

* all pages 'working'

* cr

* cr

* cr

* cr
2025-06-18 11:03:39 -07:00
Dylan Boudro
708a9f6b1a
feat: hookup shell & apply patch tools to client side messages stream (#161)
* add action-step tool component into UI for apply_patch and shell tool calls

* improve types

* update open-swe zod to match web/ zod

* CR: improving action-step implementation

* CR: generating state of action-step

* cr

---------

Co-authored-by: Brace Sproul <braceasproul@gmail.com>
2025-06-17 09:37:52 -07:00
Brace Sproul
fda6529419
feat(open-swe): encrypt GitHub tokens in proxy route to prevent exposure in LangGraph runs (#160)
* Apply patch

* Apply patch

* Apply patch

* Apply patch

* Apply patch

* cr

* docs
2025-06-15 12:37:31 -07:00
Brace Sproul
69b15a9f77
feat: add pagination support for GitHub repositories and branches (#122)
* Apply patch

* Apply patch

* Apply patch

* Apply patch

* Apply patch

* Apply patch

* Apply patch

* Apply patch

* Apply patch

* Apply patch

* Apply patch

* Apply patch

* Apply patch

* Apply patch

* Apply patch

* cleanup & fix build

* fix: always get default branch for first page

* cr

* cr

* cr

* cr

* cr

* cr
2025-06-12 00:36:23 +00:00
Brace Sproul
bf72e1faf7
feat: GitHub e2e auth (#106)
* feat: GitHub e2e auth

* cr

* reimplement proxy route

* fix github auth

* cr

* cr

* cr

* cr

* cr
2025-06-11 21:00:08 +00:00
Brace Sproul
8afe1e6803
feat: Update chat UI to be Open SWE specific (#76) (#91)
* init repo-selector

* add branch selector UI, extend GH hook w branch info

* add   reconnectOnMount: true resumeStream, remove repo description from selector, fix styling

* styling repo + branch

* udpate getBranch calls to include targetRepo arg

* format

* add search to repo + branch selectors

* add settings icon link to /github for dev convenience

* add default branch selection

* format

* minor cleanup

* init task list UI demo

* individual task component

* tasks real data

* task visual improvement

* persisting tasks, navigate to thread onClick

* task UI

* TaskSidebar, Navigate to tasks

* org tasks by thread

* group by thread

* improve sidebar, task-list, rm github modal on refresh

* collapse sidebar works when viewing a thread

* remove micro-tasks expansion from threads component, change taskId to taskIndex for persistence + simplicity

* init config sidebar ui

* open and close config sidebar

* add ref for getAllTasks + add graph_id metadata

* format

* create threadItem component

* format

* add threadUtils

* centralize + refactor types

* format

* improve thread status, realtime updates

* fix scroll issue

* remove temperature from config-sidebar

* Change model via sidebar

* fix flashing on updates

* init plan UI

* centralize types

* self CR: refactoring, cleanup, remove comments, add todos

* CR: clean comments + logs, fix repo selector bug

* fix: Update example env file in web (#77)

* disable auto scroll on pageload

* reposelector: use default branch not main master

* remove archived tab temp, default branch listed first in branchSelector dropdown

* auto select first repo

* improve status indicator

* refactor status indicator

* simplify status implementation to use Langgraph

* util moved from provider to thread-utils

* linting, improve task completion logic

* feat: Support followup requests (#60)

* feat: Support followup requests

* cr

* cr

* fix

* account for pr already exists

* remove task provider

* fix: Better prompting and context provided for codebase structure awareness (#85)

* fix: Better prompting and context provided for codebase structure awareness

* cr

* linting + skeleton loader

* fix: branch selector, add github api pagination

* small branch update

* update task completion status realtime

* threadItem stream remove flashing/polling

* feat: Create a shared package (#89)

* feat: Create a shared package

* formatting

* fix: drop passing target repo to getBranchName

* drop docs

* use shared package for config fields in config sidebar

* fix: styling and structure for repo/branch selectors

* fix: use shared types/objects for config fields

* default key for configs

* fix: improved styling for threads

* fix renering num tasks

* disable repo branch selector when chat started

* cr

* cr

* bump deps

* fix: rendering plan in interrupt

* cr

* cr

---------

Co-authored-by: Dylan Boudro <121908331+starmorph@users.noreply.github.com>
2025-06-09 00:29:40 +00:00
Brace Sproul
887fc030a4
feat(agent-generated): Add github oauth (#63)
* Apply patch

* Apply patch

* Apply patch

* Apply patch

* Apply patch

* Apply patch

* Apply patch

* Apply patch

* Apply patch

* Apply patch

* Apply patch

* Apply patch

* format and lint

* fix ui

* Apply patch (#68)

Co-authored-by: Harrison Chase <11986836+hwchase17@users.noreply.github.com>

* fix: Github auth

* update readme

* cr

* cr

* cr

* cr

---------

Co-authored-by: Harrison Chase <11986836+hwchase17@users.noreply.github.com>
Co-authored-by: Harrison Chase <hw.chase.17@gmail.com>
2025-06-02 01:30:29 +00:00
Harrison Chase
a12ff5114e
feat: rebrand chat interface from "Agent Chat" to "Open SWE" (#37)
* Apply patch

* Apply patch

* cr

---------

Co-authored-by: Harrison Chase <11986836+hwchase17@users.noreply.github.com>
Co-authored-by: bracesproul <braceasproul@gmail.com>
2025-05-28 13:19:15 -07:00
Brace Sproul
76dadeeb72
feat: Add web package (#34) 2025-05-28 19:26:47 +00:00