Skip to content

armgit / avibe

Public Imported from GitHub
0

Make your computer a home for your AI partner. Avibe is the local-first Agent OS: Vibey, its built-in AI partner, works out of the box, and Claude Code, Codex & OpenCode run unchanged beside it — reach them from your browser, phone, or any chat app.

843 B
Raw Blame
import type { SessionActionDescriptor } from './sessionActions';

// Touch surfaces do not advertise desktop keyboard chords. Keep the shared
// descriptor model intact and adapt only the mobile presentation.
export const mobileSessionActions = (actions: SessionActionDescriptor[]): SessionActionDescriptor[] =>
  actions.map((action) => (action.id === 'archive' ? { ...action, hint: undefined } : action));

// The chat header's title is already click-to-edit, so its menu never repeats
// Rename on any viewport.
export const chatHeaderSessionActions = (actions: SessionActionDescriptor[]): SessionActionDescriptor[] =>
  actions.filter((action) => action.id !== 'rename');

export const mobileChatSessionActions = (actions: SessionActionDescriptor[]): SessionActionDescriptor[] =>
  chatHeaderSessionActions(mobileSessionActions(actions));