You've already forked agentic-coding-workflow
feat(web): register acp-sessions routes + fix route param convention to slug/wsSlug
This commit is contained in:
@@ -22,7 +22,7 @@ const errorMsg = ref<string | null>(null)
|
||||
onMounted(async () => {
|
||||
await acpStore.listAgentKinds(false)
|
||||
if (wsStore.list.length === 0) {
|
||||
await wsStore.fetchByProject(route.params.projectSlug as string)
|
||||
await wsStore.fetchByProject(route.params.slug as string)
|
||||
}
|
||||
})
|
||||
|
||||
@@ -54,7 +54,7 @@ async function submit() {
|
||||
|
||||
const sess = await acpStore.createSession(req)
|
||||
router.push(
|
||||
`/p/${route.params.projectSlug}/workspaces/${route.params.wsSlug}/acp-sessions/${sess.id}`,
|
||||
`/p/${route.params.slug}/w/${route.params.wsSlug}/acp-sessions/${sess.id}`,
|
||||
)
|
||||
} catch (e) {
|
||||
errorMsg.value = `Create failed: ${e instanceof Error ? e.message : 'unknown'}`
|
||||
@@ -65,7 +65,7 @@ async function submit() {
|
||||
|
||||
function cancel() {
|
||||
router.push(
|
||||
`/p/${route.params.projectSlug}/workspaces/${route.params.wsSlug}/acp-sessions`,
|
||||
`/p/${route.params.slug}/w/${route.params.wsSlug}/acp-sessions`,
|
||||
)
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user