Skip to content

fix: correct Windows netstat command and add browser label for cache clearing#442

Open
ygd58 wants to merge 1 commit into
genlayerlabs:mainfrom
ygd58:fix/troubleshooting-windows-cmd-and-chrome-label
Open

fix: correct Windows netstat command and add browser label for cache clearing#442
ygd58 wants to merge 1 commit into
genlayerlabs:mainfrom
ygd58:fix/troubleshooting-windows-cmd-and-chrome-label

Conversation

@ygd58

@ygd58 ygd58 commented Jul 10, 2026

Copy link
Copy Markdown

Summary

Two fixes in the Studio troubleshooting documentation.

Bug 1: Wrong Windows Command

The port conflict section used find instead of findstr:

# Before (broken on Windows)
netstat -aon | find <PORT_NUMBER>

# After (correct)
netstat -aon | findstr <PORT_NUMBER>

The find command on Windows requires quoted search strings and behaves differently from Unix grep. findstr is the correct tool for filtering netstat output by port number.

Bug 2: Chrome-Only Cache Instructions Not Labeled

The cache clearing steps (address bar -> Cookies and site data -> Manage on device site data -> Delete localhost) only work in Chrome/Chromium. Firefox, Brave, and Safari users cannot find these options.

Added (Chrome/Chromium) label and a note directing other browser users to their browser's built-in site data settings.

Fixes #413

Summary by CodeRabbit

  • Documentation
    • Expanded browser-specific instructions for clearing localhost cache and site data when the frontend does not load correctly.
    • Updated the Windows port-conflict troubleshooting command to improve process identification.

…clearing (genlayerlabs#413)

Two fixes in troubleshooting.mdx:

1. Windows port conflict command: 'find' -> 'findstr'
   The find command requires quoted strings on Windows.
   findstr is the correct tool for filtering netstat output by port number.

2. Cache clearing instructions: add '(Chrome/Chromium)' label and note for other browsers.
   The existing steps only work in Chrome/Chromium. Firefox, Brave and Safari
   users could not find the described UI options.

Fixes genlayerlabs#413
@netlify

netlify Bot commented Jul 10, 2026

Copy link
Copy Markdown

Deploy Preview for genlayer-docs ready!

Name Link
🔨 Latest commit 805d614
🔍 Latest deploy log https://app.netlify.com/projects/genlayer-docs/deploys/6a51798987bbb80007a52612
😎 Deploy Preview https://deploy-preview-442--genlayer-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@coderabbitai

coderabbitai Bot commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

The troubleshooting page adds browser-specific localhost site-data clearing guidance and changes the Windows port lookup command to use findstr.

Changes

Troubleshooting updates

Layer / File(s) Summary
Troubleshooting guidance
pages/developers/intelligent-contracts/tools/genlayer-studio/troubleshooting.mdx
Expands cache-clearing instructions for Chrome/Chromium and other browsers, and replaces the Windows find filter with findstr for identifying processes using ports.

Estimated code review effort: 1 (Trivial) | ~3 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title is concise, specific, and accurately summarizes the two documentation fixes.
Description check ✅ Passed The description clearly summarizes both fixes and references the linked issue, with enough detail despite the template not being followed exactly.
Linked Issues check ✅ Passed The changes directly address both requirements in issue #413: the Windows command fix and the Chrome/Chromium cache guidance.
Out of Scope Changes check ✅ Passed The PR only contains documentation updates relevant to the linked troubleshooting fixes.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In
`@pages/developers/intelligent-contracts/tools/genlayer-studio/troubleshooting.mdx`:
- Line 14: Rename the existing “Clear Cache (Chrome/Chromium)” troubleshooting
step to “Clear localhost site data” and update its wording to describe deleting
localhost cookies and site data. Add a separate troubleshooting step explaining
how to clear cached images and files when stale frontend assets are the issue.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 8c933993-db99-44e4-9b69-da84ee76cd60

📥 Commits

Reviewing files that changed from the base of the PR and between 8254a15 and 805d614.

📒 Files selected for processing (1)
  • pages/developers/intelligent-contracts/tools/genlayer-studio/troubleshooting.mdx

### Solution
- **Refresh Frontend:** Simply reload the page in your browser.
- **Clear Cache:** Clear your browser's cache by clicking on the left of your address bar -> Cookies and site data -> Manage on device site data -> Delete localhost.
- **Clear Cache (Chrome/Chromium):** Clear your browser's cache by clicking on the left of your address bar -> Cookies and site data -> Manage on device site data -> Delete localhost. For other browsers (Firefox, Brave, Safari), use the browser's built-in settings to clear site data for localhost.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

file="pages/developers/intelligent-contracts/tools/genlayer-studio/troubleshooting.mdx"

echo "== File overview =="
wc -l "$file"
echo

echo "== Relevant section =="
nl -ba "$file" | sed -n '1,40p'

Repository: genlayerlabs/genlayer-docs

Length of output: 333


🏁 Script executed:

#!/bin/bash
set -euo pipefail

file="pages/developers/intelligent-contracts/tools/genlayer-studio/troubleshooting.mdx"

echo "== Relevant section =="
sed -n '1,40p' "$file" | cat -n

Repository: genlayerlabs/genlayer-docs

Length of output: 2115


🌐 Web query:

Chrome documentation cookies and site data versus clear cached images and files localhost site data

💡 Result:

In Chrome, the options to clear browsing data are categorized to address different types of technical issues [1][2]. Cookies and Site Data This category is intended for managing session-based and persistent state that websites use to remember you [3][2]. - Cookies: Small files used to maintain authentication (keeping you signed in), save site preferences, and track sessions [3][1][4]. Clearing these typically signs you out of websites [5][3][1]. - Site Data: Includes advanced storage mechanisms such as LocalStorage, SessionStorage, IndexedDB, and Service Worker registrations [5][2][6]. This data is often used by web applications to store complex state, offline capabilities, or local app settings [5][4][2]. Cached Images and Files This category focuses on performance and visual rendering [7][2]. - What it contains: Saved copies of page assets like images, CSS stylesheets, JavaScript files, and other static resources [4][2]. - Purpose: By storing these locally, Chrome speeds up subsequent visits to the same page [7][4][2]. - When to use: Clearing this is usually the primary step to resolve visual glitches, broken layouts, or instances where a site displays outdated content despite server-side updates [1][4][2]. Localhost Considerations Localhost data, including cookies and storage, is treated by the browser as site data associated with the origin (e.g., http://localhost:PORT) [8][9]. - Clearing "Cookies and site data" generally removes all storage (cookies, LocalStorage, IndexedDB) associated with the localhost origin [5][6]. - Note: Depending on browser behavior and specific port configurations, clearing data for "localhost" may sometimes require precision. If you are developing and need to clear data for a specific port (e.g., localhost:3000 vs localhost:8000), you can use Chrome DevTools (Application tab) to target and delete data specifically for that origin rather than performing a global clear of all browser data [9][10]. Summary - If you are experiencing login issues, session errors, or site preference glitches, clear Cookies and site data [1][4]. - If you see formatting issues, broken styles, or outdated content, clear Cached images and files [1][4][2]. - For development on localhost, you can clear data globally via the browser settings or granularly for a specific port via the DevTools Application panel [4][9].

Citations:


pages/developers/intelligent-contracts/tools/genlayer-studio/troubleshooting.mdx:14 — Rename this step to “Clear localhost site data.”
This clears cookies/storage for localhost, not the browser cache. Add a separate step for clearing cached images and files if stale frontend assets are the issue.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In
`@pages/developers/intelligent-contracts/tools/genlayer-studio/troubleshooting.mdx`
at line 14, Rename the existing “Clear Cache (Chrome/Chromium)” troubleshooting
step to “Clear localhost site data” and update its wording to describe deleting
localhost cookies and site data. Add a separate troubleshooting step explaining
how to clear cached images and files when stale frontend assets are the issue.

Source: MCP tools

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Troubleshooting: wrong Windows command and Chrome-specific instructions

1 participant