jupyter-ai icon indicating copy to clipboard operation
jupyter-ai copied to clipboard

`/learn` operates on absolute paths relative to host OS's root directory

Open JasonWeill opened this issue 1 year ago • 1 comments
trafficstars

Description

When running the /learn command, users can provide an absolute path relative to the host operating system's root directory. For example, on macOS, the path /Users/jsmith/foo/bar is valid, even if JupyterLab is running under /Users/jsmith/foo, in which case only /bar would be used by most of JupyterLab.

Expected behavior

For consistency with the terminal and the file browser, Jupyter AI should regard / as the server's root, not the root of the host OS's file system.

Context

  • Operating System and version: macOS 13.6.6
  • Browser and version: Firefox ESR 124.0.1
  • JupyterLab version: 4.1.5
  • Jupyter AI version: tip of main (2.13.0)

JasonWeill avatar Apr 09 '24 20:04 JasonWeill

Is there a way to disable /learn from a traitlet?

krassowski avatar Apr 11 '24 16:04 krassowski