Skip to content

A command that is given an omo path as an argument is taken for omo #248

Closed

Description

@devswha

What happens

isOmoProcess (server/omo.ts) takes a pane's foreground process for omo when any word of its argv is an omo path. A program that is only handed such a path counts too:

grep -q /home/u/.nvm/versions/node/v24.18.0/lib/node_modules/omo-ai/x   -> omo
cat /home/u/.nvm/versions/node/v24.18.0/bin/omo                          -> omo
node /home/u/tools/watch.js /…/omo-ai/plugin                             -> omo

#243 removed the PATH-list case (a word with :), but a single path as an argument still passes.

Effect

Every caller reads the answer as "omo runs in this pane":

  • labelOmoPanes names the pane omo in the sidebar while that command runs.
  • omoTranscriptForPane counts the process as an omo runtime in the cwd, which can block the session inference for a real omo pane in the same cwd.
  • startShellAgent can report omo started while a shell startup command that names the path is in front.

Expected

Only the program counts: argv[0], or the script that node/bun runs. Real omo 5.1.7 under herdr 0.9.0 reports

["/home/u/.bun/bin/bun", "/…/omo-ai/node_modules/@code-yeongyu/senpi/dist/bundle/cli.js", "--extension", "/…/omo-ai/plugin"]

and the other known shapes are node …/bin/omo, a native omo, and the SDK child …/omo-ai/…/claude.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions