You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Improve memory usage and support large CSVs by switching summarization to a streaming-style collector.
Provide a quick local environment check for Ollama and model availability to make diagnoses easier before running models.
Expose diagnostics from both the CLI and the Windows desktop UI so users can validate runtime dependencies without leaving the app.
Description
Implemented streaming summarization by adding summarize_reader and routing build_analysis_payload/build_analysis_payload_from_csv_text to use it in bitnet_tools/analysis.py.
Added a new diagnostics module bitnet_tools/doctor.py with collect_environment(model) to check Python/platform info, ollama in PATH, ollama --version, and ollama list + model availability.
Exposed diagnostics via a new CLI subcommand doctor in bitnet_tools/cli.py and added a desktop command path and bitnet-desktop entry point in pyproject.toml.
Integrated a GUI 환경진단 button into the Windows desktop app (bitnet_tools/desktop.py) to show diagnostics in-app and added a thin bitnet_desktop.pyw launcher plus BitNet_Desktop_Start.bat for one-click start on Windows.
Updated README.md to reflect the diagnostics flow, Windows start guidance, and updated completion status.
Added/updated tests for streaming mixed-type handling and the doctor CLI output in tests/test_analysis.py and tests/test_cli.py.
Testing
Ran pytest -q and all tests passed (7 passed).
Executed the diagnostic CLI with python -m bitnet_tools.cli doctor --model bitnet:latest, which ran successfully and produced a valid diagnostics report (in this environment it reported ollama not found in PATH).
_analyze_async, _doctor_async, and _run_model_async run work in background threads, but those workers call Tk widget APIs (self.question.get() here, and similarly self.model.get() in other handlers). Tkinter is not thread-safe, so this can intermittently raise Tcl/thread errors or hang the desktop app when users click Analyze/Doctor/Run. Capture widget values on the UI thread before starting the worker, and only do non-Tk work inside the thread.
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
Description
summarize_readerand routingbuild_analysis_payload/build_analysis_payload_from_csv_textto use it inbitnet_tools/analysis.py.bitnet_tools/doctor.pywithcollect_environment(model)to check Python/platform info,ollamain PATH,ollama --version, andollama list+ model availability.doctorinbitnet_tools/cli.pyand added adesktopcommand path andbitnet-desktopentry point inpyproject.toml.환경진단button into the Windows desktop app (bitnet_tools/desktop.py) to show diagnostics in-app and added a thinbitnet_desktop.pywlauncher plusBitNet_Desktop_Start.batfor one-click start on Windows.README.mdto reflect the diagnostics flow, Windows start guidance, and updated completion status.doctorCLI output intests/test_analysis.pyandtests/test_cli.py.Testing
pytest -qand all tests passed (7 passed).python -m bitnet_tools.cli doctor --model bitnet:latest, which ran successfully and produced a valid diagnostics report (in this environment it reportedollama not found in PATH).Codex Task