Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
d8a5443
feat(opencode): expand profile endpoint with role, description, githu…
jeonghun-jj-lee Aug 22, 2026
a415f8f
feat(app): replace Home button with profile dropdown popover
jeonghun-jj-lee Aug 23, 2026
132430e
fix(core): resolve pre-existing test failures across the server suite
jeonghun-jj-lee Aug 23, 2026
666d3b3
fix(app): resolve infinite redirect loop on / route
jeonghun-jj-lee Aug 23, 2026
e3884e3
fix(app): fix profile popover fetch auth and empty-state logic
jeonghun-jj-lee Aug 23, 2026
216148d
fix(app): match profile button to titlebar IconButtonV2 styling
jeonghun-jj-lee Aug 23, 2026
899e70c
feat(app): show SessionChatsDropdown on new-session page
jeonghun-jj-lee Aug 23, 2026
2c460fd
fix(app): show all titlebar-right buttons on new-session + fix connec…
jeonghun-jj-lee Aug 23, 2026
f8f436a
fix(app): always show status popover on new-session, remove review to…
jeonghun-jj-lee Aug 23, 2026
a551ce0
feat(app): profile popover — avatar upload, role@affil subtitle, fix …
jeonghun-jj-lee Aug 23, 2026
fba330a
fix(app): profile popover — move avatar edit to edit form, expandable…
jeonghun-jj-lee Aug 23, 2026
2c764f1
fix(app): profile bio expand/collapse arrow indicator
jeonghun-jj-lee Aug 23, 2026
274d844
fix(app): profile bio textarea — taller default (4 rows), vertically …
jeonghun-jj-lee Aug 23, 2026
a4d9c8c
fix(app): remove bio expand/collapse arrow
jeonghun-jj-lee Aug 23, 2026
7e878aa
feat(app): profile avatar remove button (x on top-right corner in edi…
jeonghun-jj-lee Aug 23, 2026
1676864
fix(app): avatar upload sends via JSON body instead of query param
jeonghun-jj-lee Aug 23, 2026
50b990e
fix(app): swap profile and settings button positions in titlebar
jeonghun-jj-lee Aug 23, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 36 additions & 3 deletions packages/app/src/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ import { setPendingAutoSend } from "@/pages/new-session/new-session-draft-contro
import { PromptProvider } from "@/context/prompt"
import { ServerConnection, ServerProvider, serverName, useServer } from "@/context/server"
import { SettingsProvider, useSettings } from "@/context/settings"
import { TabsProvider, useTabs, type DraftTab } from "@/context/tabs"
import { TabsProvider, tabHref, useTabs, type DraftTab } from "@/context/tabs"
import { SDKProvider, useSDK } from "@/context/sdk"
import { WslServersProvider } from "@/wsl/context"
import DirectoryLayout, { DirectoryDataProvider } from "@/pages/directory-layout"
Expand All @@ -74,7 +74,6 @@ import { bugDockController } from "@/pages/session/composer/bug-dock-controller"
import { postBugReportPoke } from "@/utils/amicode-bug-report"

import { SessionPage, SessionRouteErrorBoundary, TargetSessionRouteContent } from "@/pages/session"
import { NewHome } from "@/pages/home"
import { LegacyHome } from "@/pages/home/legacy-home"
import { AmicodeFileRefBridge } from "@/components/amicode-file-ref-bridge"
import { DevToolsReopenBridge } from "@/components/settings-dialog"
Expand Down Expand Up @@ -741,7 +740,7 @@ function Routes(props: { serverScoped?: JSX.Element }) {
</Route>
</Route>
<Show when={settings.general.newLayoutDesigns()}>
<Route path="/" component={NewHome} />
<Route path="/" component={NewSessionLanding} />
<Route path="/:dir/session/:id" component={NewLayoutLegacySessionRedirect} />
<Route path="/server/:serverKey/session/:id" component={TargetSessionRoute} />
</Show>
Expand All @@ -750,6 +749,40 @@ function Routes(props: { serverScoped?: JSX.Element }) {
)
}

/** Landing route when the Home/Dashboard page is removed: creates a new draft
* session tab on mount and navigates to it. If a session tab already exists,
* navigates to the most recent one instead of creating a duplicate. */
function NewSessionLanding() {
const tabs = useTabs()
const global = useGlobal()
const navigate = useNavigate()

const land = () => {
// If there's already a session or draft tab, navigate to it
const existing = tabs.store.find((tab) => tab.type === "session" || tab.type === "draft")
if (existing) {
navigate(tabHref(existing), { replace: true })
return
}

// Otherwise create a new draft — find a server + project to use
const connections = global.servers.list()
const conn = connections[0]
if (!conn) return // no server connected yet — will re-render when one connects

const project = global.ensureServerCtx(conn).projects.list()[0]
if (!project) return // no project yet

tabs.newDraft({ server: ServerConnection.key(conn), directory: project.worktree }, "")
}

return (
<Show when={tabs.ready()}>
{(() => { land(); return null })()}
</Show>
)
}

function NewLayoutLegacySessionRedirect() {
const server = useServer()
const tabs = useTabs()
Expand Down
Loading
Loading