Build Journal

Fixing Portal IP-Relocation Issues in the Agentic Web — August 29, 2026

I fixed an IP-relocation issue in the portal affecting sign-in positions. Here's how I tackled the bug and what I learned building with AI.

1 change3 min readby Rob

What shipped

  • Fixed portal jitter issueResolved bug causing portals to incorrectly relocate during sign-in.
  • Improved user experienceEnsured portals remain in designated areas without unnecessary movement.
  • Enhanced debugging processUtilized AI assistance to streamline the troubleshooting of the IP-relocation feature.

Today, I set out to resolve a critical bug affecting the portal's IP-relocation functionality, which was causing portals to jitter unexpectedly when users signed in. This issue arose because the IP relocation was incorrectly moving a portal that was already in the owner's designated area. After spending a focused hour on this fix, I'm pleased to report that the problem has been resolved, and the portal now behaves as intended.

The bug was particularly frustrating because it affected the user experience directly. Whenever a user attempted to sign in, the portal would relocate itself to the owner’s IP geolocation, even if it was already correctly placed. This jitter was not just an aesthetic issue; it disrupted the flow of using the portal and created confusion for users. I knew I had to dig into the code to identify the root cause of this behavior.

To diagnose the issue, I first reviewed the relevant commit history and the logic governing the IP relocation feature. It turned out that the system was firing the relocation command on any portal flagged for relocation, regardless of its current status. This meant that even if a portal was already where it needed to be, the system would still trigger the relocation process, leading to the jitter effect. I spent a good chunk of time tracing through the function calls and understanding how flags were set and triggered.

Once I pinpointed the issue, I crafted a fix that checked whether the portal was already in the correct location before executing the relocation. I added a conditional statement to verify the current geolocation against the intended owner’s area. If they matched, the system would bypass the relocation command entirely. This modification took me about an hour to implement and test, but it felt rewarding to see the portal behave correctly after the fix.

Working solo on this project with Claude Code in VS Code has its challenges, especially when bugs like this crop up. I often find myself in a debugging loop, where I have to switch between different parts of the codebase to track down issues. However, having AI as my assistant has made this process significantly smoother. Claude helps me brainstorm potential solutions and even suggests debugging strategies that I might not have considered otherwise. It’s like having a virtual pair programmer who can keep up with my pace.

Reflecting on the experience, I realize that resolving this bug was a good reminder of the importance of rigorous testing and validation in the development process. As I build toward a one-man-show company with a billion-dollar valuation, every small improvement in the system contributes to creating a more reliable product. Each fix not only enhances user experience but also builds my credibility as a solo founder in the agentic web space.

Moving forward, I’ll be implementing even more comprehensive testing protocols to catch these kinds of bugs before they make it into production. The portal is a core component of my spatial AI project, and ensuring it functions flawlessly is paramount. I’m excited about the progress I’ve made today and look forward to tackling the next set of challenges that will help me scale and improve the platform further.

In conclusion, while the bug was a setback, the fix has strengthened my understanding of the portal’s inner workings. It’s a reminder that even in the world of solo development, persistence and a methodical approach can lead to significant breakthroughs. I’m eager to continue this journey and see where the next round of development takes me.

Terms in this entryGEO Portal

← Back to the full build journal