3724 Commits

Author SHA1 Message Date
Patrick Honkonen
3be876a83b
Add comprehensive session logging hooks
This commit introduces a comprehensive session logging system for Claude Code. The system uses a set of hooks to automatically capture all session activity for retrospective analysis, writing logs to the `.claude/skills/retrospecting/logs/` directory.

The primary goal of this feature is to enable detailed session analysis by the `retrospecting` skill. Logs are generated in two formats:
- **NDJSON (`.ndjson`):** A compact, machine-readable format optimized for programmatic analysis.
- **Markdown (`.md`):** A human-readable format for manual review of the session.

This change introduces the following components:
- **`logging_utils.py`**: A shared Python module that provides a `SessionLogger` class to handle the creation and appending of log entries in both NDJSON and Markdown formats. It includes fail-safe error handling to prevent logging issues from disrupting the user's session.
- **Session Hooks**: A suite of executable Python scripts in `.claude/hooks/` that are triggered by different events in a Claude Code session:
    - `SessionStart`: Initializes log files when a session begins.
    - `UserPromptSubmit`: Logs each prompt submitted by the user.
    - `PostToolUse`: Records every successful tool execution.
    - `Stop`: Captures Claude's final response by parsing the session transcript.
    - `SubagentStop`: Logs the completion of a subagent task.
    - `SessionEnd`: Finalizes the logs when the session concludes.
- **Documentation**:
    - `README.md`: Explains the logging system, log formats, and maintenance.
    - `SUMMARY.md`: Provides a high-level overview of the implementation.
    - `VERIFICATION.md`: Contains steps to verify that the hooks are working correctly.
- **Testing**:
    - `test_hooks.sh`: An automated test script to ensure all hooks are executable and function as expected.
- **Skill Integration**:
    - Updates to the `retrospecting` skill (`SKILL.md`) to utilize the new logs for its analysis.
    - New context files for the `retrospecting` skill: `session-analytics.md` and `retrospective-templates.md` to guide analysis and report generation.
    - A `.gitignore` file is added to the `retrospecting` skill directory to exclude the `logs/` folder from version control.
2025-10-23 18:21:49 -04:00
Patrick Honkonen
60d00cf4ea
Add code formatting to file paths and code references
This commit updates the `reviewing-changes/SKILL.md` document to improve readability. Code formatting (using backticks) has been applied to file paths, file extensions, and code-specific terms such as `StateFlow`, `@HiltViewModel`, and `biometricPrompt`.
2025-10-23 18:16:58 -04:00
Patrick Honkonen
9a0bd0b371
Remove line number references from SKILL.md
This commit removes parenthetical line number references from the `reviewing-changes/SKILL.md` file. These references pointed to the `CLAUDE.md` file and were removed to improve readability and prevent them from becoming outdated as `CLAUDE.md` changes.
2025-10-23 16:39:17 -04:00
Patrick Honkonen
dec2ed7155
Add CODEOWNERS for Claude-related files
This commit updates the `.github/CODEOWNERS` file to establish ownership for Claude-related files.

A new rule has been added that assigns ownership of all files and subdirectories within the `.claude/` directory to the `@bitwarden/team-ai-sme` team. This ensures that the appropriate team is automatically requested for review on any pull requests modifying these files.
2025-10-23 15:54:48 -04:00
Patrick Honkonen
b7fb072758
Add reviewing-changes skill and streamline docs
This commit introduces a new `reviewing-changes` skill to formalize the code review process for Bitwarden Android. The skill provides a structured, step-by-step guide for conducting comprehensive code reviews, covering context, compliance, documentation, and providing actionable feedback.

The primary `CLAUDE.md` file has been refactored to be more concise by removing redundant horizontal rule separators. Additionally, the `review-code.md` prompt has been updated to directly invoke the new `reviewing-changes` skill, simplifying the review initiation process.
2025-10-23 15:36:54 -04:00
Patrick Honkonen
48e0ce4aa5
Update Claude guidelines for Bitwarden Android
This commit overhauls the `CLAUDE.md` file to provide a more comprehensive set of guidelines for AI-assisted development on the Bitwarden Android project.

The updated document establishes clear directives and standards, including:
*   Core directives emphasizing adherence to project architecture, code style, and established patterns.
*   An overview of module organization and key architectural patterns like MVVM, Hilt, and UDF.
*   Security requirements that must be considered with every change.
*   A structured workflow covering pre-implementation, implementation, and post-implementation steps.
*   A list of anti-patterns to avoid.
*   Guidelines for communication, decision-making, and when to seek clarification.
*   A refined list of essential reference documents.
2025-10-23 15:12:22 -04:00
Mick Letofsky
ebc38b4fdc
Implement reusable Claude code review workflow 2025-10-23 07:46:31 +02:00
David Perez
562b48d689
Fix TopAppBar height for multiline titles (#6069) 2025-10-22 21:09:28 +00:00
Patrick Honkonen
c3496ca60f
[PM-26810] Remove loading dialog flicker on vault data updates (#6068) 2025-10-22 20:30:48 +00:00
Nailik
a8f8450ec9
[PM-27088] fix unit test execution (#6048) 2025-10-22 20:27:59 +00:00
David Perez
47628a6da2
Remove night-mode icon variants where possible (#6066) 2025-10-22 20:06:13 +00:00
David Perez
5a540a3460
PM-27263: Add enum for Vault Timeout Policy actions (#6067) 2025-10-22 20:05:48 +00:00
David Perez
92cfce1224
PM-27202: Update ItemListingScreen layout for improved spacing (#6065) 2025-10-22 14:42:35 +00:00
David Perez
4597337500
PM-27210: Add dynamic color support to Authenticator (#6063) 2025-10-22 14:42:18 +00:00
aj-rosado
e610a7541d
[PM-27001] Skip account selection only one exists on cxp flow (#6055) 2025-10-22 09:08:35 +00:00
David Perez
ae4b398258
PM-27153: Update copy in Authenticator app (#6061) 2025-10-21 16:06:08 +00:00
David Perez
0482f9eb4d
Update drawable names with consistent prefixes (#6060) 2025-10-21 15:54:31 +00:00
André Bispo
9f4bd70c8d
[PM-26420] Add flight recorder logs for vault unlock method and PIN migration (#6052) 2025-10-20 22:29:10 +00:00
David Perez
9874aad65a
PM-27149: Update empty vault illustration (#6059) 2025-10-20 21:46:31 +00:00
David Perez
97bb93c18e
PM-27136: Replace FirstTimeSyncSnackbarHost with BitwardenSnackbarHost (#6058) 2025-10-20 20:42:47 +00:00
Patrick Honkonen
31e7e05eda
[PM-27130] Update alert (Snackbar) color to inverseSurface in dynamic color scheme (#6057) 2025-10-20 18:15:03 +00:00
André Bispo
afeeb494da
[PM-23290] Migrate PIN unlock keys to PinProtectedUserKeyEnvelope (#6024) 2025-10-20 17:31:12 +00:00
aj-rosado
d5912a5dc3
[PM-26986] Hide select other account button if user has no other account (#6041) 2025-10-20 16:02:43 +00:00
bw-ghapp[bot]
13fa8a1ed0
Update SDK to 1.0.0-3436-2a00b727 (#6042)
Co-authored-by: bw-ghapp[bot] <178206702+bw-ghapp[bot]@users.noreply.github.com>
2025-10-20 15:55:31 +00:00
David Perez
5a145ee163
Update OkHttp to latest version (#6054) 2025-10-20 15:35:09 +00:00
celenityy
74b9a12e19
[PM-27076] Add support for IronFox Nightly (#6046)
Signed-off-by: celenity <celenity@celenity.dev>
v2025.10.1-bwpm v2025.10.1-bwa
2025-10-17 13:34:29 +00:00
David Perez
71e830bb09
PM-26912: Update copy for authenticator security (#6045)
Co-authored-by: Patrick Honkonen <phonkonen@bitwarden.com>
2025-10-17 13:27:19 +00:00
David Perez
8f3f1fa3ba
PM-27071: Add overflow menu to authenticator search (#6044) 2025-10-17 12:58:17 +00:00
bw-ghapp[bot]
9bd35ccca5
Crowdin Pull (#6047)
Co-authored-by: bitwarden-devops-bot <106330231+bitwarden-devops-bot@users.noreply.github.com>
2025-10-17 12:57:56 +00:00
Patrick Honkonen
74aa0a78ec
[PM-26810] Add OTP support to VerifyPasswordScreen (#6034) 2025-10-16 21:02:52 +00:00
David Perez
ae3470c598
Fix flaky test (#6043) 2025-10-16 19:18:58 +00:00
André Bispo
a70b2172cb
[PM-26736] Prevent logout notification on KDF change (#6038) 2025-10-16 18:54:56 +00:00
David Perez
714f7cfadc
PM-27046: Add overflow to Authenticator (#6039) 2025-10-16 18:15:41 +00:00
Amy Galles
53d04375b1
Fix workflow name and permissions (#6040) 2025-10-16 18:06:30 +00:00
aj-rosado
3ace095b86
[PM-26909] Implement screen capture toggle authenticator (#6033) 2025-10-16 15:51:54 +00:00
David Perez
8a90d77fd7
Update Item listing and search screens to user immutable lists (#6037) 2025-10-16 15:43:52 +00:00
bw-ghapp[bot]
4b96007a77
Update SDK to 1.0.0-3430-fc75b903 (#6036)
Co-authored-by: bw-ghapp[bot] <178206702+bw-ghapp[bot]@users.noreply.github.com>
2025-10-16 10:54:23 +00:00
David Perez
03df341a1e
Consolidate the VaultVerificationCodeItems (#6035) 2025-10-15 20:43:30 +00:00
André Bispo
d966423087
[PM-23280] Use masterPasswordUnlock KDF settings on vault unlock (#6026) 2025-10-15 20:01:19 +00:00
Patrick Honkonen
f7cbcd21ec
Expand supported credential types for import (#6030) 2025-10-15 13:49:20 +00:00
bw-ghapp[bot]
188ddf98f4
Update SDK to 1.0.0-3404-8b95ae6e (#6021)
Co-authored-by: bw-ghapp[bot] <178206702+bw-ghapp[bot]@users.noreply.github.com>
Co-authored-by: Carlos Gonçalves <cgoncalves@bitwarden.com>
2025-10-15 13:31:32 +00:00
aj-rosado
b8f4129691
[PM-26395] Hide "my items" collection when item is assigned to other collection (#6018) 2025-10-15 10:24:31 +00:00
bw-ghapp[bot]
b8482de96c
Crowdin Pull (#6031)
Co-authored-by: bitwarden-devops-bot <106330231+bitwarden-devops-bot@users.noreply.github.com>
2025-10-14 21:41:59 +00:00
Amy Galles
9e860008e8
[BRE-1194] temporarily enable hourly checks for github release (#5895)
Co-authored-by: Andy Pixley <3723676+pixman20@users.noreply.github.com>
2025-10-14 21:33:39 +00:00
Patrick Honkonen
af737b3f07
[PM-26803] Show empty state when no items are available for export (#6023) 2025-10-14 20:01:17 +00:00
David Perez
5b5176db40
PM-26910: Minor UI updates for the Authenticator (#6028) 2025-10-14 19:59:08 +00:00
David Perez
e7365b355f
Common camera UI (#6027) 2025-10-14 19:47:25 +00:00
Patrick Honkonen
433b3b6fb0
Add optional buttons to BitwardenEmptyContent (#6022) 2025-10-14 15:17:35 +00:00
David Perez
318307c377
Add navigation chevron for Import Items button (#6020) 2025-10-13 20:48:41 +00:00
Patrick Honkonen
912eba14d6
[PM-26802] Update button text for Import items (#6019) 2025-10-13 18:19:49 +00:00