Skip to content

TUI config clean up#968

Merged
phact merged 8 commits into
langflow-ai:mainfrom
philnash:philnash/tui-extras
Feb 19, 2026
Merged

TUI config clean up#968
phact merged 8 commits into
langflow-ai:mainfrom
philnash:philnash/tui-extras

Conversation

@philnash

Copy link
Copy Markdown
Member

This builds on #967 and fixes up some things I noticed in the code while fixing #892.

Initially, I noticed that there are two input fields that store directories to save data in, but only the documents path was being validated as a path that could be written to. This adds the same validation to the OpenSearch Data path.

I then noticed there were a couple of unused methods, neither _create_header_text nor _create_field were being used, so I deleted them.

Finally, there were some other miscellaneous issues in the file, so I:

  • removed unused imports
  • removed the unused assignment to current_password
  • converted some f-strings without interpolations into regular strings

philnash and others added 7 commits February 16, 2026 16:17
While fixing langflow-ai#967, I noticed that the other file selector input in this form did not validate that the directory could be written to. This adds the DocumentsPathValidator to the OpenSearch data directory field to match the the documents path.
Neither the _create_field nor _create_header_text methods were being used, this deletes them.
This

* removes unused imports from tui/screens/config.py
* removes unused assignment to current_password
* changes f-strings to regular strings when they have no interpolations
@phact

phact commented Feb 19, 2026

Copy link
Copy Markdown
Collaborator

Thanks for the fixes!

@phact

phact commented Feb 19, 2026

Copy link
Copy Markdown
Collaborator

@phact phact merged commit c7873f9 into langflow-ai:main Feb 19, 2026
4 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants