-
Notifications
You must be signed in to change notification settings - Fork 198
feat: UI UX Update to react #219
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Conversation
* @returns Promise with the response containing session and plan IDs | ||
*/ | ||
static async submitInputTask(description: string): Promise<InputTaskResponse> { | ||
const sessionId = this.generateSessionId(); |
Check failure
Code scanning / CodeQL
Insecure randomness High
Math.random()
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI 6 days ago
To fix the issue, replace the use of Math.random()
with a cryptographically secure random number generator. For JavaScript in the browser, crypto.getRandomValues
can be used to generate secure random values. This ensures that the session ID is unpredictable and resistant to attacks.
The generateSessionId()
method should be updated to use crypto.getRandomValues
to generate the random component of the session ID. Specifically:
- Import the
crypto
module if necessary (for Node.js environments). - Replace
Math.random()
withcrypto.getRandomValues(new Uint32Array(1))[0]
to generate a secure random number. - Ensure the random number is formatted appropriately (e.g., within the desired range).
-
Copy modified line R2 -
Copy modified line R89
@@ -1,2 +1,3 @@ | ||
import { PlanWithSteps, PlanStatus } from '../models'; | ||
import { crypto } from 'crypto'; | ||
import { Task } from '../models/taskList'; | ||
@@ -87,3 +88,3 @@ | ||
const timestamp = new Date().getTime(); | ||
const random = Math.floor(Math.random() * 10000); | ||
const random = crypto.getRandomValues(new Uint32Array(1))[0] % 10000; | ||
return `sid_${timestamp}_${random}`; |
- Disabled input field option - Chat icon in PlanPage - AI-generated type fixed - Fluent foreground color on user message light mode
fix: UI ux refresh bug fixes
- Scroll to bottom on load and new message - Task / Subtask visual haul - Carats in PanelLeft fixed - Shortened task titles - Removed Content panel title icons - Sample data... visual haul - Progress ring is now a Coral component
- Favicon added - Left Nav accessibility issue resolved - "New Task" focuses input - Potential fix for Approve and Reject button wrapping - Guess to Guest typo resolved - Progress ring background color fix - Aligned progress list tracker to Figma designs
fix: Bug Fix #19398, #19280
Purpose
Does this introduce a breaking change?
How to Test
git clone [repo-address] cd [repo-name] git checkout [branch-name] npm install
What to Check
Verify that the following are valid: