feat(ai): disable local provider and improve commit file display
Local AI is now treated as unavailable in the settings UI, with a migration to ensure any previously saved "local" selection switches back to OpenAI. The history panel also improves how commit file names are presented, including clearer old->new path formatting. - Migrate stored AI provider away from local to prevent dead state - Disable local provider option with an "in development" badge - Refine history panel filename rendering and tooltip context
This commit is contained in:
@@ -413,20 +413,27 @@ do not include lines starting with 'diff --git', '@@', '+', '-', 'index ', 'Stag
|
||||
or 'Diff stat:' anywhere in your answer. \
|
||||
Format: a Conventional Commits header (<type>(<scope>): <subject>) in imperative mood, \
|
||||
max. 72 characters, then a blank line, then a body. \
|
||||
The body is required: one short paragraph explaining what changed and why, \
|
||||
then bullet points (- ...) of the key changes grouped by affected area/file. \
|
||||
The body is required: a short, general paragraph (2-4 sentences) summarizing what changed \
|
||||
and why at a high level — do NOT enumerate every changed file individually. \
|
||||
You may optionally add up to 3 bullet points (- ...) afterward, but only for the most \
|
||||
significant changes overall, never one bullet or heading per file. \
|
||||
Never use bold text, backticks, or markdown headings for file names. \
|
||||
Lines in the body max. 72 characters. \
|
||||
No preamble, no explanation, no code fences, no markdown headings, answer in English.\n\n\
|
||||
No preamble, no explanation, no code fences, answer in English.\n\n\
|
||||
Example:\n\
|
||||
Diff:\n\
|
||||
diff --git a/src/auth.py b/src/auth.py\n\
|
||||
+def hash_password(pw):\n\
|
||||
+ return bcrypt.hash(pw)\n\n\
|
||||
+ return bcrypt.hash(pw)\n\
|
||||
diff --git a/src/routes.py b/src/routes.py\n\
|
||||
-if password == stored_password:\n\
|
||||
+if bcrypt.check(password, stored_password):\n\n\
|
||||
Commit message:\n\
|
||||
feat(auth): add password hashing helper\n\n\
|
||||
Add a bcrypt-based helper so passwords are never stored or compared in\n\
|
||||
plain text.\n\n\
|
||||
- auth.py: add hash_password() using bcrypt"
|
||||
feat(auth): hash and verify passwords with bcrypt\n\n\
|
||||
Passwords were previously compared as plain text. This adds a bcrypt-based\n\
|
||||
hashing helper and updates the login check to verify against the hash\n\
|
||||
instead of a direct string comparison.\n\n\
|
||||
- Hash passwords on write, verify with bcrypt on login"
|
||||
.to_string();
|
||||
|
||||
let mut user = String::new();
|
||||
|
||||
Reference in New Issue
Block a user