Issue #2057 Slice 2: Add worktree remove action
Backend: - POST /api/session/worktree/remove — removes a session's git worktree - Guards: stream/terminal lock, dirty/untracked without force - remove_worktree_for_session() in api/worktrees.py Frontend: - 'Remove Worktree' context menu item + confirm modal - i18n keys for all 11 locales Tests: - 5 tests: clean remove, missing worktree, no-path, route success, 404
This commit is contained in:
1 parent
9268f411d8
commit
93b7d35bfa
6 files changed
+529
-2
No files matched your search
+3
-2
@@ -156,10 +156,11 @@ Python stdlib ThreadingHTTPServer (from http.server). Each HTTP request runs in
|
||||
thread. The Handler class subclasses BaseHTTPRequestHandler with two methods:
|
||||
|
||||
do_GET Routes: /, /health, /api/session, /api/sessions, /api/list,
|
||||
/api/chat/stream, /api/file, /api/approval/pending
|
||||
/api/chat/stream, /api/file, /api/approval/pending,
|
||||
/api/session/worktree/status
|
||||
do_POST Routes: /api/upload, /api/session/new, /api/session/update,
|
||||
/api/session/delete, /api/chat/start, /api/chat,
|
||||
/api/approval/respond
|
||||
/api/approval/respond, /api/session/worktree/remove
|
||||
|
||||
Routing is a flat if/elif chain inside each method. No routing framework.
|
||||
|
||||
|
||||
Reference in new issue
Block a user