agent-orchestrator/backend/internal/httpd
Khushi Diwan 7d0ca02440
fix(project): resolve default branch from origin/HEAD, not checked-out branch (#289)
* fix(project): resolve default branch from origin/HEAD, not checked-out branch

Detecting the project default via `symbolic-ref --short HEAD` captured
whatever branch the repo happened to be on at add time. Adding a project
while on a feature branch (e.g. fix/pr-attachment) persisted that branch
as the default, so every session worktree based off it instead of main.

Prefer the remote default (origin/HEAD), falling back to the checked-out
branch only when no remote default is set. This still records a non-main
default like master correctly, while ignoring the active feature branch.

* test: cover branch-not-fetched API error
2026-06-19 19:50:19 +05:30
..
apierr refactor(backend): LLD maintainability fixes in controllers/service layers (#95) (#96) 2026-06-03 18:09:02 +05:30
apispec feat(session): support multiple PRs per session (#230) 2026-06-17 17:31:28 +05:30
controllers fix(project): resolve default branch from origin/HEAD, not checked-out branch (#289) 2026-06-19 19:50:19 +05:30
envelope fix(sessions): stop AO hook files from making every worktree permanently dirty (#169) 2026-06-11 11:06:45 +05:30
api.go Feat/backend telemetry v0 (#307) 2026-06-18 22:00:25 +05:30
control_test.go fix(cli): harden daemon control surface and stop CLI from writing the store 2026-06-01 01:55:14 +05:30
cors.go feat(frontend): scaffold for frontend with complimentary backend changes (#168) 2026-06-10 11:40:17 +05:30
cors_test.go feat(frontend): scaffold for frontend with complimentary backend changes (#168) 2026-06-10 11:40:17 +05:30
events.go feat(cdc): add SSE event stream replay (#106) 2026-06-06 19:32:21 +05:30
events_test.go feat(cdc): add SSE event stream replay (#106) 2026-06-06 19:32:21 +05:30
log.go Feat/backend telemetry v0 (#307) 2026-06-18 22:00:25 +05:30
log_test.go Feat/backend telemetry v0 (#307) 2026-06-18 22:00:25 +05:30
logger.go refactor: simplify session lifecycle and zellij runtime (#62) 2026-06-01 08:42:49 +05:30
logger_test.go refactor(backend): LLD maintainability fixes in controllers/service layers (#95) (#96) 2026-06-03 18:09:02 +05:30
recover.go Feat/backend telemetry v0 (#307) 2026-06-18 22:00:25 +05:30
router.go Feat/backend telemetry v0 (#307) 2026-06-18 22:00:25 +05:30
server.go refactor(backend): LLD maintainability fixes in controllers/service layers (#95) (#96) 2026-06-03 18:09:02 +05:30
server_test.go refactor(backend): LLD maintainability fixes in controllers/service layers (#95) (#96) 2026-06-03 18:09:02 +05:30
telemetry_test.go Feat/backend telemetry v0 (#307) 2026-06-18 22:00:25 +05:30
terminal_mux.go refactor: simplify session lifecycle and zellij runtime (#62) 2026-06-01 08:42:49 +05:30
terminal_mux_test.go feat(windows): ConPTY terminal, zellij discovery, agent launcher trampoline, codex shim resolution (#310) 2026-06-18 21:51:05 +05:30
testhelpers_test.go refactor(backend): LLD maintainability fixes in controllers/service layers (#95) (#96) 2026-06-03 18:09:02 +05:30