Skip to content

Improve sub-shell experience in terminal inline chat #254462

Open
@anthonykim1

Description

@anthonykim1

The current experience of using inline chat in sub-shell is not ideal, in a way that it does not realize that user is in a sub-shell. This is even though the shell type has changed.

For example, if I were to enter Python sub-shell from zsh, and then request inline chat to print hello world in Python, it would give me a suggestion or command of python3 -c "print('hello world')", which is not good.

This is not good because we are already in a Python REPL or Python sub-shell, and python3 -c is completely unnecessary.

Image

We should give context for inline chat about shell type, or figure out if its missing context for sub-shell scenarios. Or figure out what else is causing this issue.

Metadata

Metadata

Assignees

Labels

terminalGeneral terminal issues that don't fall under another labelterminal-inline-chatIssues related to the terminal inline chat widget

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions