diff --git a/pkg/interface/src/views/apps/term/app.tsx b/pkg/interface/src/views/apps/term/app.tsx index 69a2f8222..3524ee897 100644 --- a/pkg/interface/src/views/apps/term/app.tsx +++ b/pkg/interface/src/views/apps/term/app.tsx @@ -393,8 +393,6 @@ export default function TermApp(props: TermAppProps) { // open subscription // - // TODO start default session alongside other landscape subscriptions, - // once subscription refactor is in. api.subscribe({ app: 'herm', path: '/session/'+selected, event: (e) => { const ses = useTermState.getState().sessions[selected]; @@ -402,7 +400,7 @@ export default function TermApp(props: TermAppProps) { console.log('on blit: no such session', selected, sessions, useTermState.getState().sessions); return; } - showBlit(ses.term, e.data); + showBlit(ses.term, e); }, quit: () => { // quit // TODO show user a message diff --git a/pkg/npm/api/term/lib.ts b/pkg/npm/api/term/lib.ts index 86db547d8..e6ae877ea 100644 --- a/pkg/npm/api/term/lib.ts +++ b/pkg/npm/api/term/lib.ts @@ -1,13 +1,13 @@ import _ from 'lodash'; import { Scry } from '../lib' -import { Enc, Path, Patp, PatpNoSig, Poke, Thread } from '../lib/types'; +import { Poke } from '../lib/types'; import { Belt, Task, SessionTask } from './types'; export const pokeTask = (session: string, task: Task): Poke => ({ app: 'herm', mark: 'herm-task', - json: { session, task } + json: { session, ...task } }); export const pokeBelt = ( diff --git a/pkg/npm/api/term/types.ts b/pkg/npm/api/term/types.ts index 5ffd920a6..8bcdd302f 100644 --- a/pkg/npm/api/term/types.ts +++ b/pkg/npm/api/term/types.ts @@ -57,7 +57,4 @@ export type Task = | { hail: null } | { hook: null } -export type SessionTask = { - session: string, - task: Task -} +export type SessionTask = { session: string } & Task