Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
JasonWeill opened this issue Apr 9, 2024 · 1 comment
Labels
bug Something isn't working @jupyter-ai/chatui project:learn-ask /learn and /ask commands, discoverability

Comments

@JasonWeill
Copy link
Collaborator

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 JasonWeill added bug Something isn't working @jupyter-ai/chatui project:learn-ask /learn and /ask commands, discoverability labels Apr 9, 2024
@krassowski
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working @jupyter-ai/chatui project:learn-ask /learn and /ask commands, discoverability
Projects
None yet
Development

No branches or pull requests

2 participants