v1.1.0
This commit is contained in:
parent
cf54a4733f
commit
5e449cdd94
12 changed files with 53 additions and 19 deletions
|
|
@ -12,7 +12,12 @@ def copy_selection_to_clipboard(app: App) -> None:
|
|||
continue
|
||||
|
||||
selection = widget.text_selection
|
||||
result = widget.get_selection(selection)
|
||||
|
||||
try:
|
||||
result = widget.get_selection(selection)
|
||||
except Exception:
|
||||
continue
|
||||
|
||||
if not result:
|
||||
continue
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
from __future__ import annotations
|
||||
|
||||
__all__ = ["__version__", "run_programmatic"]
|
||||
__version__ = "1.0.6"
|
||||
__version__ = "1.1.0"
|
||||
|
||||
from vibe.core.programmatic import run_programmatic
|
||||
|
|
|
|||
|
|
@ -299,7 +299,7 @@ class VibeConfig(BaseSettings):
|
|||
vim_keybindings: bool = False
|
||||
disable_welcome_banner_animation: bool = False
|
||||
displayed_workdir: str = ""
|
||||
auto_compact_threshold: int = 100_000
|
||||
auto_compact_threshold: int = 200_000
|
||||
context_warnings: bool = False
|
||||
textual_theme: str = "textual-dark"
|
||||
instructions: str = ""
|
||||
|
|
@ -539,7 +539,26 @@ class VibeConfig(BaseSettings):
|
|||
|
||||
@classmethod
|
||||
def _migrate(cls) -> None:
|
||||
pass
|
||||
if not CONFIG_FILE.exists():
|
||||
return
|
||||
|
||||
try:
|
||||
with CONFIG_FILE.open("rb") as f:
|
||||
config = tomllib.load(f)
|
||||
except (OSError, tomllib.TOMLDecodeError):
|
||||
return
|
||||
|
||||
needs_save = False
|
||||
|
||||
if (
|
||||
"auto_compact_threshold" not in config
|
||||
or config["auto_compact_threshold"] == 100_000 # noqa: PLR2004
|
||||
):
|
||||
config["auto_compact_threshold"] = 200_000
|
||||
needs_save = True
|
||||
|
||||
if needs_save:
|
||||
cls.dump_config(config)
|
||||
|
||||
@classmethod
|
||||
def load(cls, agent: str | None = None, **overrides: Any) -> VibeConfig:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue